Modify

Opened 16 years ago

Closed 15 years ago

#3682 closed defect (duplicate)

KeyError: 'fields'

Reported by: Alexander Malaev Owned by: Noah Kantrowitz
Priority: normal Component: MasterTicketsPlugin
Severity: major Keywords:
Cc: martin@… Trac Release: 0.11

Description

After upgrade of the trac from 0.10 to 0.11 and installation of MTP i got KeyError: 'fields'

How to Reproduce

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

(please provide additional details here)

Request parameters:

{'action': u'diff', 'id': u'504', 'version': u'16'}

User Agent was: Mozilla/5.0 (X11; U; Linux x86_64; ru; rv:1.9.0.1) Gecko/2008070400 Firefox/3.0.1

System Information

Trac 0.11.1
Python 2.5 (r25:51908, Jan 10 2008, 18:01:52)
[GCC 4.1.2 20061115 (prerelease) (SUSE Linux)]
setuptools 0.6c9
SQLite 3.2.8
pysqlite 2.4.1
Genshi 0.5.1
Pygments 0.11.1
Subversion 1.4.3 (r23084)
jQuery: 1.2.6

Python Traceback

Traceback (most recent call last):
  File "/usr/local/lib64/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/local/lib64/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/local/lib64/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-x86_64/egg/mastertickets/web_ui.py", line 64, in post_process_request
    for field, field_data in change['fields'].iteritems():
KeyError: 'fields'

Attachments (0)

Change History (6)

comment:1 Changed 16 years ago by anonymous

Same problem here if i want to view the differences between ticket comments (diff):

2008-09-25 14:55:33,295 Trac[main] ERROR: 'NoneType' object is unsubscriptable
Traceback (most recent call last):
  File "C:\Python25\Lib\site-packages\trac\web\main.py", line 233, in dispatch
    self._post_process_request(req)
  File "C:\Python25\Lib\site-packages\trac\web\main.py", line 301, in _post_process_request
    f.post_process_request(req, *(None,)*extra_arg_count)
  File "build\bdist.win32\egg\mastertickets\web_ui.py", line 44, in post_process_request
    tkt = data['ticket']
TypeError: 'NoneType' object is unsubscriptable
2008-09-25 14:55:33,295 Trac[main] ERROR: 'fields'
Traceback (most recent call last):
  File "C:\Python25\Lib\site-packages\trac\web\main.py", line 423, in _dispatch_request
    dispatcher.dispatch(req)
  File "C:\Python25\Lib\site-packages\trac\web\main.py", line 209, in dispatch
    self._post_process_request(req, *resp)
  File "C:\Python25\Lib\site-packages\trac\web\main.py", line 299, in _post_process_request
    resp = f.post_process_request(req, *resp)
  File "build\bdist.win32\egg\mastertickets\web_ui.py", line 64, in post_process_request
    for field, field_data in change['fields'].iteritems():
KeyError: 'fields'
2008-09-25 14:55:33,483 Trac[main] DEBUG: 1461 unreachable objects found.

comment:2 Changed 15 years ago by petr.odut

have the same problem with diff feature:

Python Traceback

Traceback (most recent call last):
  File "/opt/python/lib/python2.5/site-packages/Trac-0.11-py2.5.egg/trac/web/main.py", line 423, in _dispatch_request
    dispatcher.dispatch(req)
  File "/opt/python/lib/python2.5/site-packages/Trac-0.11-py2.5.egg/trac/web/main.py", line 209, in dispatch
    self._post_process_request(req, *resp)
  File "/opt/python/lib/python2.5/site-packages/Trac-0.11-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'

comment:3 Changed 15 years ago by Sigurd Hogsbro

Severity: normalmajor

I'm seeing the exact same issue. Not determined cause as yet.

comment:4 Changed 15 years ago by anonymous

Cc: martin@… added; anonymous removed

comment:5 Changed 15 years ago by martin@…

this bug is also reported in #3920 - but the posted patch doesn't work

comment:6 Changed 15 years ago by anonymous

Resolution: duplicate
Status: newclosed

A new patch (which works) can be found on #3920 - I'm closing this ticket as duplicate.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Noah Kantrowitz.
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.