Modify

#11112 closed defect (fixed)

KeyError: 'ticket_id'

Reported by: rjollos Owned by: rjollos
Priority: normal Component: TracHoursPlugin
Severity: normal Keywords:
Cc: Trac Release:

Description

How to Reproduce

While doing a GET operation on /hours/1, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'format': u'rss'}

User agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.22 (KHTML, like Gecko) Ubuntu Chromium/25.0.1364.160 Chrome/25.0.1364.160 Safari/537.22

System Information

Trac 1.0.1
Genshi 0.6 (without speedups)
pysqlite 2.6.0
Python 2.7.3 (default, Aug 1 2012, 05:16:07)
[GCC 4.6.3]
setuptools 0.6
SQLite 3.7.9
jQuery 1.7.2

Enabled Plugins

ComponentDependencyPlugin 0.1
PrivateReports 0.4dev
TicketSidebarProvider 0.0-r11698
TracHoursPlugin 0.6.0dev

Python Traceback

Traceback (most recent call last):
  File "/home/user/Workspace/th11047/trac-1.0.1/trac/web/main.py", line 497, in _dispatch_request
    dispatcher.dispatch(req)
  File "/home/user/Workspace/th11047/trac-1.0.1/trac/web/main.py", line 214, in dispatch
    resp = chosen_handler.process_request(req)
  File "/home/user/Workspace/trachacks2.git/trachoursplugin/trunk/trachours/hours.py", line 246, in process_request
    return self.process_ticket(req)
  File "/home/user/Workspace/trachacks2.git/trachoursplugin/trunk/trachours/hours.py", line 917, in process_ticket
    return self.tickethours2rss(req, data)
  File "/home/user/Workspace/trachacks2.git/trachoursplugin/trunk/trachours/hours.py", line 972, in tickethours2rss
    adapted['title'] = 'Hours worked for ticket %s' % data['ticket_id']
KeyError: 'ticket_id'

Attachments (0)

Change History (2)

comment:1 Changed 16 months ago by rjollos

  • Component changed from SELECT A HACK to TracHoursPlugin
  • Owner set to rjollos
  • Status changed from new to assigned

comment:2 Changed 16 months ago by rjollos

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [13211]) Fixes #11112: Fixed KeyError when accessing RSS feed on the /hours/<id> page.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.