Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

#9057 closed defect (cantfix)

KeyError: 'status'

Reported by: tom.myny@… Owned by:
Priority: high Milestone:
Component: general Version: 0.11.1
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a GET operation on /ticket/1128, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'id': u'1128'}

User Agent was: Mozilla/5.0 (Windows; U; Windows NT 6.1; nl; rv:1.9.2) Gecko/20100115 Firefox/3.6

System Information

Trac 0.11.1
Python 2.5.2 (r252:60911, Jan 24 2010, 14:53:14)
[GCC 4.3.2]
setuptools 0.6c12
SQLite 3.5.9
pysqlite 2.4.1
Genshi 0.5.1
Subversion 1.5.1 (r32289)
RPC 1.0.6
jQuery: 1.2.6

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 444, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 205, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.5/site-packages/trac/ticket/web_ui.py", line 185, in process_request
    return self._process_ticket_request(req)
  File "/usr/lib/python2.5/site-packages/trac/ticket/web_ui.py", line 452, in _process_ticket_request
    ticket = Ticket(self.env, id, version=version)
  File "/usr/lib/python2.5/site-packages/trac/ticket/model.py", line 48, in __init__
    self._fetch_ticket(tkt_id, db)
  File "/usr/lib/python2.5/site-packages/trac/ticket/model.py", line 132, in _fetch_ticket
    if self.values['status'] == 'closed':
KeyError: 'status'

I checked the database:

sqlite> select status from ticket where id=993; Response: closed

sqlite> select * from enum limit 10; status|new|1 status|assigned|2 status|reopened|3 status|closed|4 resolution|fixed|1 resolution|invalid|2 resolution|wontfix|3 resolution|duplicate|4 resolution|works4me|5 priority|Continu:blocker/ others can't!!!|3

Please help (or give tips)

Attachments (0)

Change History (2)

comment:1 by anonymous, 14 years ago

This errors dissapears when activating the agile 0.3 plug-in for trac, explained in this error:

http://trac.edgewall.org/ticket/9058

The roadmap page gives another error when disabled, same as this: KeyError: 'status'

comment:2 by Christian Boos, 14 years ago

Resolution: cantfix
Status: newclosed

Seeing #9058, this also smells like a PluginIssue… Please check with that plugin's author.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.