Opened 14 years ago
Closed 14 years ago
#10062 closed defect (worksforme)
Cannot update priority with no name
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | 0.10.4 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Having been allowed to create the priority " " (one space) I now have an entry that cannot be removed or prioritized.
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 406, in dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 237, in dispatch
resp = chosen_handler.process_request(req)
File "build/bdist.linux-x86_64/egg/webadmin/web_ui.py", line 119, in process_request File "build/bdist.linux-x86_64/egg/webadmin/ticket.py", line 367, in process_admin_request File "/usr/lib/python2.4/site-packages/trac/ticket/model.py", line 388, in update
assert self.name, 'Cannot update %s with no name' % self.type
AssertionError: Cannot update priority with no name
Are you really running 0.10.4? In this case, please upgrade to at least 0.11.7, or better 0.12.2. I'm pretty sure this has been fixed.
To remove the offending priority, you will have to run a SQL statement on the database directly.