Edgewall Software

Opened 15 years ago

Last modified 15 years ago

#8560 closed defect

add new ticket - bug — at Version 1

Reported by: anonymous Owned by:
Priority: normal Milestone:
Component: general Version: 0.11.5
Severity: normal Keywords: needinfo
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Remy Blank)

when I added new ticket, and I clicked on 'Submit ticket' I got some error

( I have the latest stable version of trac )

Python Traceback

Traceback (most recent call last):
  File "/Library/Python/2.5/site-packages/trac/web/main.py", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File "/Library/Python/2.5/site-packages/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/Library/Python/2.5/site-packages/trac/ticket/web_ui.py", line 313, in process_request
    get_reporter_id(req, 'author'))
  File "/Library/Python/2.5/site-packages/trac/ticket/web_ui.py", line 669, in _insert_ticket_data
    actions = TicketSystem(self.env).get_available_actions(ticket, req.perm)
  File "/Library/Python/2.5/site-packages/trac/ticket/api.py", line 83, in get_available_actions
    return [action for action in actions.get(ticket['status'], ['leave'])
  File "/Library/Python/2.5/site-packages/trac/ticket/model.py", line 104, in __getitem__
    return self.values[name]
KeyError: 'status'

and when later I want look at created ticket I got sth silimar

Python Traceback

Traceback (most recent call last):
  File "/Library/Python/2.5/site-packages/trac/web/main.py", line 406, in dispatch_request
    dispatcher.dispatch(req)
  File "/Library/Python/2.5/site-packages/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/Library/Python/2.5/site-packages/trac/ticket/web_ui.py", line 313, in process_request
    get_reporter_id(req, 'author'))
  File "/Library/Python/2.5/site-packages/trac/ticket/web_ui.py", line 669, in _insert_ticket_data
    actions = TicketSystem(self.env).get_available_actions(ticket, req.perm)
  File "/Library/Python/2.5/site-packages/trac/ticket/api.py", line 83, in get_available_actions
    return [action for action in actions.get(ticket['status'], ['leave'])
  File "/Library/Python/2.5/site-packages/trac/ticket/model.py", line 104, in __getitem__
    return self.values[name]
KeyError: 'status'

Change History (1)

comment:1 by Remy Blank, 15 years ago

Description: modified (diff)
Keywords: needinfo added
Version: none0.11.5

That specific ticket doesn't seem to have a status, which should never happen. Do you have any plugins installed?

You'll probably have to fix the ticket by hand in the database, and set its status to e.g. "new".

Also, please give us some more information about your setup: database, Python database bindings, web server and frontend, …

Note: See TracTickets for help on using tickets.