Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#9122 closed defect (fixed)

Cannot create any ticket

Reported by: aurorius@… Owned by: Remy Blank
Priority: normal Milestone: 0.12
Component: ticket system Version: 0.12dev
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I cannot create any ticket at all after the installation. When I clicked the Ticket menu at the top right of the screen, I got this error:

Trac detected an internal error:
TemplateRuntimeError: "when" directives can only be used inside a "choose" directive (/root/.python-eggs/Trac-0.12dev_r9334-py2.6.egg-tmp/trac/ticket/templates/ticket.html, line 360)

By the way, this is my second installation (I tried the latest 0.11 before and then removed it). I'm using Slackware 13.

System Information:

User Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6
Trac: 0.12dev-r9334
Genshi: 0.6dev-r1096
MySQL: server: "5.0.84", client: "5.0.84", thread-safe: 1
MySQLdb: 1.2.3c1
Python: 2.6.2 (r262:71600, Jun 9 2009, 17:15:39) [GCC 4.3.3]
setuptools: 0.7a1
Subversion: 1.6.4 (r38063)
jQuery: 1.4.2

Attachments (1)

traceback (2.4 KB ) - added by aurorius@… 14 years ago.
Python traceback

Download all attachments as: .zip

Change History (6)

by aurorius@…, 14 years ago

Attachment: traceback added

Python traceback

comment:1 by Remy Blank, 14 years ago

Milestone: 0.12
Resolution: fixed
Status: newclosed

Indeed, this is due to a typo introduced in [9330]. Fixed in [9337]. Thanks for the bug report.

comment:2 by Remy Blank, 14 years ago

Owner: set to Remy Blank

comment:3 by Christian Boos, 14 years ago

Oops yes, thanks for the fix Remy.

comment:4 by Christian Boos, 14 years ago

A bit strange that the functional tests didn't catch this…

Create a ticket, comment on it, and attach a file ... ok

from http://buildbot.timhatch.com/trac/builders/Ubuntu%20py24%20amd64/builds/398/steps/functional%20tests/logs/stdio

in reply to:  4 comment:5 by Remy Blank, 14 years ago

Replying to cboos:

A bit strange that the functional tests didn't catch this…

That's probably because the issue doesn't show if you're logged in, only for anonymous users, and IIRC we run most of our functional tests as a logged-in user.

Time to add more tests! :-)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Remy Blank.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Remy Blank to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.