Modify ↓
#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 , 18 years ago
| Owner: | changed from to |
|---|
comment:2 by , 18 years ago
| Component: | general → ticket system |
|---|---|
| Milestone: | → 0.11.1 |
| Severity: | normal → trivial |
comment:3 by , 18 years ago
| Severity: | trivial → major |
|---|
comment:4 by , 17 years ago
| Milestone: | 0.11.2 → 0.11.1 |
|---|---|
| Owner: | changed from to |
| Severity: | major → trivial |
comment:6 by , 17 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."
Note:
See TracTickets
for help on using tickets.



You need to have at least one resolution defined. Try:
We could have a nicer
TracError("No resolution configured. Add at least one with TracAdmin.")instead of the assert.