#174: KeyError: 'fields'
----------------------+-----------------------------------------------------
Reporter: Giel | Owner: Kamaze
Type: defect | Status: new
Priority: critical | Milestone:
Component: Website | Version:
Keywords: | Operating_system: All/Non-Specific
Blockedby: | Blocking:
----------------------+-----------------------------------------------------
==== How to Reproduce ====
While doing a GET operation on `/ticket/173` (#173), Trac issued an
internal error.
When selecting a diff of the changed description (
http://developer.wz2100.net/ticket/173?action=diff&version=1 ) I get the
below backtrace.
After looking around a bit I found this was a known problem and discovered
this ticket and patch to fix it: http://trac-
hacks.org/attachment/ticket/3920/fix_ticket_diff.patch
I've applied the patch, rebuilt the plugin and placed it here:
/home/warzone/trac-
plugins/masterticketsplugin/dist/TracMasterTickets-2.1.3-py2.5.egg
/var/www/warzone/developer.wz2100.net/plugins/TracMasterTickets-2.1.3-py2.5.egg
will need to be replaced by that file and apache restarted.
Request parameters:
{{{
{'action': u'diff', 'id': u'173', 'version': u'1'}
}}}
User Agent was: `Mozilla/5.0 (X11; U; Linux x86_64; nl; rv:1.9.0.3)
Gecko/2008092814 Iceweasel/3.0.3 (Debian-3.0.3-3)`
==== System Information ====
|| '''Trac''' || `0.11.1` ||
|| '''Python''' || `2.5.2 (r252:60911, Jul 31 2008, 17:28:52) ` [[br]]
`[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]` ||
|| '''setuptools''' || `0.6c8` ||
|| '''SQLite''' || `3.4.2` ||
|| '''pysqlite''' || `2.3.2` ||
|| '''Genshi''' || `0.5` ||
|| '''Subversion''' || `1.4.6 (r28521)` ||
|| '''Pygments''' || `0.10` ||
|| '''jQuery:''' || `1.2.6` ||
==== Python Traceback ====
{{{
Traceback (most recent call last):
File "/usr/lib/python2.5/site-
packages/Trac-0.11.1-py2.5.egg/trac/web/main.py", line 423, in
_dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.5/site-
packages/Trac-0.11.1-py2.5.egg/trac/web/main.py", line 209, in dispatch
self._post_process_request(req, *resp)
File "/usr/lib/python2.5/site-
packages/Trac-0.11.1-py2.5.egg/trac/web/main.py", line 299, in
_post_process_request
resp = f.post_process_request(req, *resp)
File "build/bdist.linux-i686/egg/mastertickets/web_ui.py", line 64, in
post_process_request
for field, field_data in change['fields'].iteritems():
KeyError: 'fields'
}}}
--
Ticket URL: <http://developer.wz2100.net/ticket/174>
Warzone 2100 Trac <http://wz2100.net/>
The Warzone 2100 Resurrection Project
_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev