Modify

Opened 11 years ago

Closed 11 years ago

#11112 closed defect (fixed)

KeyError: 'ticket_id'

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
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 11 years ago by Ryan J Ollos

Component: SELECT A HACKTracHoursPlugin
Owner: changed from anonymous to Ryan J Ollos
Status: newassigned

comment:2 Changed 11 years ago by Ryan J Ollos

Resolution: fixed
Status: assignedclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.