Edgewall Software

Ticket #6999 (closed defect: fixed)

Opened 9 months ago

Last modified 4 months ago

AssertionError:

Reported by: adrian Owned by: cboos
Priority: normal Milestone: 0.11.1
Component: ticket system Version: 0.11b1
Severity: trivial Keywords:
Cc:

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

Change History

Changed 9 months ago by adrian.garner@…

  • owner changed from jonas to anonymous

Changed 9 months ago by cboos

  • component changed from general to ticket system
  • severity changed from normal to trivial
  • milestone set to 0.11.1

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.

Changed 8 months ago by anonymous

  • severity changed from trivial to major

Changed 5 months ago by cboos

  • owner changed from anonymous to cboos
  • severity changed from major to trivial
  • milestone changed from 0.11.2 to 0.11.1

Changed 5 months ago by cboos

  • status changed from new to closed
  • resolution set to fixed

Fixed in r7327.

Changed 4 months ago by anonymous

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."

Add/Change #6999 (AssertionError:)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from cboos. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.