Modify ↓
Opened 13 years ago
Closed 11 years ago
#10524 closed defect (fixed)
Changing the ticket type fails when ticket status does not exist
| Reported by: | Owned by: | Cinc-th | |
|---|---|---|---|
| Priority: | normal | Component: | MultipleWorkflowPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Trac Release: | 0.11 |
Description
Changing the ticket type gives the error below when the new ticket type does not have the ticket status of the old ticket type.
Trac detected an internal error: KeyError: '_reset'
Most recent call last:
File "/usr/lib/python2.7/dist-packages/trac/web/main.py", line 450, in _dispatch_request
File "/usr/lib/python2.7/dist-packages/trac/web/main.py", line 206, in dispatch
File "/usr/lib/python2.7/dist-packages/trac/ticket/web_ui.py", line 182, in process_request
File "/usr/lib/python2.7/dist-packages/trac/ticket/web_ui.py", line 536, in _process_ticket_request
File "/usr/lib/python2.7/dist-packages/trac/ticket/web_ui.py", line 1264, in _insert_ticket_data
File "build/bdist.linux-x86_64/egg/MultipleWorkflowPlugin/MultipleWorkflowPlugin.py", line 200, in render_ticket_action_control
Attachments (0)
Change History (3)
comment:1 Changed 11 years ago by
| Owner: | changed from Ermal Memushaj to Cinc-th |
|---|---|
| Status: | new → assigned |
comment:2 Changed 11 years ago by
| Status: | assigned → accepted |
|---|
comment:3 Changed 11 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |
[14566]: Offer a ticket action to reset the status when ticket has an invalid status after a type change.
An invalid status is any status which is not defined in the active workflow.
Note: See
TracTickets for help on using
tickets.



I can confirm the bug with 0.12.5:
13:26:41 Trac[main] ERROR: Internal Server Error: Traceback (most recent call last): File "/Users/cinc/projects/ReqVirtualEnv/lib/python2.7/site-packages/trac/web/main.py", line 522, in _dispatch_request dispatcher.dispatch(req) File "/Users/cinc/projects/ReqVirtualEnv/lib/python2.7/site-packages/trac/web/main.py", line 243, in dispatch resp = chosen_handler.process_request(req) File "/Users/cinc/projects/ReqVirtualEnv/lib/python2.7/site-packages/trac/ticket/web_ui.py", line 169, in process_request return self._process_ticket_request(req) File "/Users/cinc/projects/ReqVirtualEnv/lib/python2.7/site-packages/trac/ticket/web_ui.py", line 569, in _process_ticket_request get_reporter_id(req, 'author'), field_changes) File "/Users/cinc/projects/ReqVirtualEnv/lib/python2.7/site-packages/trac/ticket/web_ui.py", line 1518, in _insert_ticket_data req, ticket, action) File "build/bdist.macosx-10.8-intel/egg/multipleworkflow/workflow.py", line 211, in render_ticket_action_control this_action = self.actions[action] KeyError: '_reset'Configuration in trac.ini: