Edgewall Software
Modify

Opened 17 years ago

Closed 16 years ago

Last modified 16 years ago

#6999 closed defect (fixed)

AssertionError:

Reported by: adrian Owned by: Christian Boos
Priority: normal Milestone: 0.11.1
Component: ticket system Version: 0.11b1
Severity: trivial Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a GET operation on /ticket/1, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'id': u'1'}

System Information

Trac 0.11b1
Python 2.5.1 (r251:54863, Oct 5 2007, 13:36:32)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)]
setuptools 0.6c8
SQLite 3.4.2
pysqlite 2.3.2
Genshi 0.4.4
Pygments 0.9

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/web/main.py", line 398, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/web/main.py", line 195, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/ticket/web_ui.py", line 159, in process_request
    return self._process_ticket_request(req)
  File "/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/ticket/web_ui.py", line 482, in _process_ticket_request
    get_reporter_id(req, 'author'), field_changes)
  File "/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/ticket/web_ui.py", line 1149, in _insert_ticket_data
    req, ticket, action)
  File "/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/ticket/default_workflow.py", line 240, in render_ticket_action_control
    assert(resolutions)
AssertionError

Attachments (0)

Change History (6)

comment:1 by adrian.garner@…, 17 years ago

Owner: changed from Jonas Borgström to anonymous

comment:2 by Christian Boos, 17 years ago

Component: generalticket system
Milestone: 0.11.1
Severity: normaltrivial

You need to have at least one resolution defined. Try:

trac-admin /your/trac/env resolution add fixed

We could have a nicer TracError("No resolution configured. Add at least one with TracAdmin.") instead of the assert.

comment:3 by anonymous, 17 years ago

Severity: trivialmajor

comment:4 by Christian Boos, 16 years ago

Milestone: 0.11.20.11.1
Owner: changed from anonymous to Christian Boos
Severity: majortrivial

comment:5 by Christian Boos, 16 years ago

Resolution: fixed
Status: newclosed

Fixed in r7327.

comment:6 by anonymous, 16 years ago

I was just hit by this bug.

Perhaps the admin interface should be updated with a hint that deleting all resolutions is bad. Right now it says: "You can remove all items from this list to completely hide this field from the user interface."

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos 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.