Modify

Opened 14 years ago

Closed 14 years ago

#8482 closed defect (fixed)

Error: "KeyError: 'id'"

Reported by: Sebastián Zaffarano Owned by: Radek Bartoň
Priority: normal Component: DiscussionPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

  1. Click in the Forums tab
  2. Click in a Forum name to edit it
  3. Select a registered user from the list in combo
  4. Click the button "Edit subscribers"
  5. Got the error:
Traceback (most recent call last):
  File "/opt/trac/lib/python2.6/site-packages/Trac-0.11.5-py2.6.egg/trac/web/main.py", line 444, in _dispatch_request
    dispatcher.dispatch(req)
  File "/opt/trac/lib/python2.6/site-packages/Trac-0.11.5-py2.6.egg/trac/web/main.py", line 205, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-i686/egg/tracdiscussion/core.py", line 112, in process_request
    template, data = api.process_discussion(context)
  File "build/bdist.linux-i686/egg/tracdiscussion/api.py", line 259, in process_discussion
    self._do_actions(context, actions)
  File "build/bdist.linux-i686/egg/tracdiscussion/api.py", line 908, in _do_actions
    listener.forum_changed(context, forum, context.forum)
  File "build/bdist.linux-i686/egg/tracdiscussion/tags.py", line 64, in forum_changed
    forum['id']))
KeyError: 'id'

I use the last svn version (checkouted from http://trac-hacks.org/svn/discussionplugin/0.11/). I attached a patch file.

Attachments (2)

discussionplugin-r9840.patch (1.1 KB) - added by Sebastián Zaffarano 14 years ago.
tracdiscussion-r9877.patch (2.0 KB) - added by kpeo 14 years ago.
tracdiscussion-r9877.patch

Download all attachments as: .zip

Change History (4)

Changed 14 years ago by Sebastián Zaffarano

comment:1 Changed 14 years ago by Radek Bartoň

Status: newassigned

Thank you for the pactch.

Changed 14 years ago by kpeo

Attachment: tracdiscussion-r9877.patch added

tracdiscussion-r9877.patch

comment:2 Changed 14 years ago by kpeo

Resolution: fixed
Status: assignedclosed

also errors like this occurs in topic changes, so tracdiscussion-r9877.patch (attached) works for me

Modify Ticket

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