Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

#7913 closed defect (invalid)

IndexError: list index out of range

Reported by: vietlq Owned by:
Priority: normal Milestone:
Component: general Version: 0.11.2.1
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

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

(please provide additional details here)

Request parameters:

{'id': u'56'}

User Agent was: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en; rv:1.8.1.19) Gecko/20081212 Camino/1.6.6 (MultiLang) (like Firefox/2.0.0.19)

System Information

Trac 0.11.2.1
Python 2.5.4 (r254:67916, Dec 28 2008, 00:30:48)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-9)]
setuptools 0.6c9
SQLite 3.6.7
pysqlite 2.5.1
Genshi 0.5.1
Pygments 1.0
Subversion 1.4.4 (r25188)
jQuery: 1.2.6

Python Traceback

Traceback (most recent call last):
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/web/main.py", line 432, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/web/main.py", line 226, in dispatch
    data, content_type)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/web/chrome.py", line 694, in render_template
    stream |= self._filter_stream(req, method, filename, stream, data)
  File "/usr/local/lib/python2.5/site-packages/Genshi-0.5.1-py2.5-linux-i686.egg/genshi/core.py", line 128, in __or__
    return Stream(_ensure(function(self)), serializer=self.serializer)
  File "/usr/local/lib/python2.5/site-packages/Trac-0.11.2.1-py2.5.egg/trac/web/chrome.py", line 781, in inner
    data)
  File "/usr/local/lib/python2.5/site-packages/TracHoursPlugin-0.2.-py2.5.egg/trachours/hours.py", line 244, in filter_stream
    stream = handler(req, stream, data)
  File "/usr/local/lib/python2.5/site-packages/TracHoursPlugin-0.2.-py2.5.egg/trachours/hours.py", line 1017, in filter_ticket
    totalhours = [ field for field in data['fields'] if field['name'] == 'totalhours' ][0]
IndexError: list index out of range

Attachments (0)

Change History (1)

comment:1 by Remy Blank, 15 years ago

Resolution: invalid
Status: newclosed

The exception is thrown in TracHoursPlugin, not in Trac itself. Please report the issue to the plugin maintainer.

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.