id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
4111,IndexError: list index out of range error caused by TracHours,denis@firmidea.com,rjollos,If TracHours is installed on an existing Trac with tickets_ it throws the following error:\r\n\r\n{{{\r\n Trac detected an internal error:\r\n IndexError: list index out of range\r\n\r\nMost recent call last:\r\n\r\n    * File "/usr/lib/python2.5/site-packages/Trac-0.11-py2.5.egg/trac/web/main.py"_ line 423_ in _dispatch_request\r\n      Code fragment:\r\n       418. try:\r\n       419. if not env and env_error:\r\n       420. raise HTTPInternalError(env_error)\r\n       421. try:\r\n       422. dispatcher = RequestDispatcher(env)\r\n       423. dispatcher.dispatch(req)\r\n       424. except RequestDone:\r\n       425. pass\r\n       426. resp = req._response or []\r\n       427.  \r\n       428. except HTTPException_ e:\r\n      Local variables:\r\n      Name	Value\r\n      after 	[u' except RequestDone:'_ u' pass'_ u' resp = ...\r\n      before 	[u' try:'_ u' if not env and env_error:'_ u' raise ...\r\n      dispatcher 	<trac.web.main.RequestDispatcher object at 0x9ffa90c>\r\n      e 	IndexError('list index out of range'_)\r\n      env 	<trac.env.Environment object at 0x99f338c>\r\n      env_error 	None\r\n      exc_info 	(<type 'exceptions.IndexError'>_ IndexError('list index out of range'_)_ ...\r\n      filename 	'/usr/lib/python2.5/site-packages/Trac-0.11-py2.5.egg/trac/web/main.py'\r\n      frames 	[{'function': '_dispatch_request'_ 'lines_before': [u' try:'_ u' ...\r\n      has_admin 	True\r\n      line 	u' dispatcher.dispatch(req)'\r\n      lineno 	422\r\n      message 	u'IndexError: list index out of range'\r\n      req 	<Request "GET u'/newticket'">\r\n      resp 	[]\r\n      tb 	<traceback object at 0xa0227fc>\r\n      tb_hide 	None\r\n      traceback 	'Traceback (most recent call last):\\n File ...\r\n    * File "/usr/lib/python2.5/site-packages/Trac-0.11-py2.5.egg/trac/web/main.py"_ line 219_ in dispatch\r\n      Code fragment:\r\n       214. out = StringIO()\r\n       215. pprint(data_ out)\r\n       216. req.send(out.getvalue()_ 'text/plain')\r\n       217. else:\r\n       218. output = chrome.render_template(req_ template_\r\n       219. data_ content_type)\r\n       220. # Give the session a chance to persist changes\r\n       221. if req.session:\r\n       222. req.session.save()\r\n       223.  \r\n       224. req.send(output_ content_type or 'text/html')\r\n      Local variables:\r\n      Name	Value\r\n      chosen_handler 	<trac.ticket.web_ui.TicketModule object at 0x9ffa72c>\r\n      chrome 	<trac.web.chrome.Chrome object at 0x9ffa12c>\r\n      content_type 	None\r\n      data 	{'dateinfo': <function dateinfo at 0x9ea9bc4>_ 'valid': None_ 'fields': ...\r\n      err 	(<type 'exceptions.IndexError'>_ IndexError('list index out of range'_)_ ...\r\n      handler 	<trac.ticket.web_ui.TicketModule object at 0x9ffa72c>\r\n      req 	<Request "GET u'/newticket'">\r\n      resp 	('ticket.html'_ {'dateinfo': <function dateinfo at 0x9ea9bc4>_ 'valid': ...\r\n      self 	<trac.web.main.RequestDispatcher object at 0x9ffa90c>\r\n      template 	'ticket.html'\r\n    * File "/usr/lib/python2.5/site-packages/Trac-0.11-py2.5.egg/trac/web/chrome.py"_ line 690_ in render_template\r\n      Code fragment:\r\n       685.  \r\n       686. stream = template.generate(**data)\r\n       687.  \r\n       688. # Filter through ITemplateStreamFilter plugins\r\n       689. if self.stream_filters:\r\n       690. stream |= self._filter_stream(req_ method_ filename_ stream_ data)\r\n       691.  \r\n       692. if fragment:\r\n       693. return stream\r\n       694.  \r\n       695. if method == 'text':\r\n      Local variables:\r\n      Name	Value\r\n      content_type 	'text/html'\r\n      data 	{'abs_url_of': <function get_abs_url at 0x966a994>_ 'all': <built-in ...\r\n      filename 	'ticket.html'\r\n      fragment 	False\r\n      method 	'xhtml'\r\n      req 	<Request "GET u'/newticket'">\r\n      self 	<trac.web.chrome.Chrome object at 0x9ffa12c>\r\n      stream 	<genshi.core.Stream object at 0x9f9490c>\r\n      template 	<MarkupTemplate "ticket.html">\r\n    * File "/usr/lib/python2.5/site-packages/Genshi-0.6dev_r895-py2.5-linux-i686.egg/genshi/core.py"_ line 128_ in __or__\r\n      Local variables:\r\n      Name	Value\r\n      function 	<function inner at 0x9f0117c>\r\n      self 	<genshi.core.Stream object at 0x9f9490c>\r\n    * File "/usr/lib/python2.5/site-packages/Trac-0.11-py2.5.egg/trac/web/chrome.py"_ line 789_ in inner\r\n      Code fragment:\r\n       784.  \r\n       785. def _filter_stream(self_ req_ method_ filename_ stream_ data):\r\n       786. def inner(stream_ ctxt=None):\r\n       787. for filter in self.stream_filters:\r\n       788. stream = filter.filter_stream(req_ method_ filename_ stream_\r\n       789. data)\r\n       790. return stream\r\n       791. return inner\r\n       792.  \r\n      Local variables:\r\n      Name	Value\r\n      ctxt 	None\r\n      data 	{'abs_url_of': <function get_abs_url at 0x966a994>_ 'all': <built-in ...\r\n      filename 	'ticket.html'\r\n      filter 	<trachours.hours.TracHoursPlugin object at 0x9ffa3ac>\r\n      method 	'xhtml'\r\n      req 	<Request "GET u'/newticket'">\r\n      self 	<trac.web.chrome.Chrome object at 0x9ffa12c>\r\n      stream 	<genshi.core.Stream object at 0x9f9490c>\r\n    * File "/usr/lib/python2.5/site-packages/TracHoursPlugin-0.1-py2.5.egg/trachours/hours.py"_ line 235_ in filter_stream\r\n      Code fragment:\r\n       230. 'roadmap.html': self.filter_roadmap_\r\n       231. }\r\n       232.  \r\n       233. handler = handlers.get(filename)\r\n       234. if handler is not None:\r\n       235. stream = handler(req_ stream_ data)\r\n       236.  \r\n       237. return stream\r\n       238.  \r\n       239.  \r\n       240. ###### internal methods\r\n      Local variables:\r\n      Name	Value\r\n      data 	{'abs_url_of': <function get_abs_url at 0x966a994>_ 'all': <built-in ...\r\n      filename 	'ticket.html'\r\n      handler 	<bound method TracHoursPlugin.filter_ticket of ...\r\n      handlers 	{'roadmap.html': <bound method TracHoursPlugin.filter_roadmap of ...\r\n      method 	'xhtml'\r\n      req 	<Request "GET u'/newticket'">\r\n      self 	<trachours.hours.TracHoursPlugin object at 0x9ffa3ac>\r\n      stream 	<genshi.core.Stream object at 0x9f9490c>\r\n    * File "/usr/lib/python2.5/site-packages/TracHoursPlugin-0.1-py2.5.egg/trachours/hours.py"_ line 995_ in filter_ticket \r\n\r\n}}},defect,closed,high,TracHoursPlugin,blocker,worksforme,trachours,k0s,0.11
