Modify

Opened 3 years ago

Closed 2 years ago

#9528 closed defect (duplicate)

KeyError: 'id'

Reported by: joseph.curtis@… Owned by: Blackhex
Priority: high Component: DiscussionPlugin
Severity: blocker Keywords:
Cc: Trac Release: 0.11

Description

I can set up forums fine, but when I chose to edit the subscription list, or another admin user tries to join a forum we get this keyerror ID error

How to Reproduce

While doing a POST operation on /discussion/forum/1, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'__FORM_TOKEN': u'b1339b8b5c3c65766083f984',
 'discussion_action': u'subscriptions-post-edit',
 'editsubscribers': u'Edit subscribers',
 'forum': u'1',
 'subscribers': u'hailiang',
 'unregistered_subscribers': u''}

User agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_8; en-us) AppleWebKit/533.21.1 (KHTML, like Gecko) Version/5.0.5 Safari/533.21.1

System Information

Trac 0.12
FullBlog 0.1.1-r9430
Genshi 0.6
mod_python 3.3.1
Pygments 1.2.2
pysqlite 2.4.1
Python 2.6.5 (r265:79063, Apr 16 2010, 14:15:55)
[GCC 4.4.3]
pytz 2010b
setuptools 0.6
SQLite 3.6.22
Subversion 1.6.6 (r40053)
jQuery 1.4.2

Enabled Plugins

SvnAuthzAdminPlugin 0.1.2
TracAccountManager 0.4dev-r10470
TracDiscussion 0.8
TracFullBlogPlugin 0.1.1-r9430
TracSpamFilter 0.4.7dev-r10669
TracTags 0.6

Python Traceback

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/web/main.py", line 513, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.6/dist-packages/Trac-0.12-py2.6.egg/trac/web/main.py", line 235, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/local/lib/python2.6/dist-packages/TracDiscussion-0.8-py2.6.egg/tracdiscussion/core.py", line 112, in process_request
    template, data = api.process_discussion(context)
  File "/usr/local/lib/python2.6/dist-packages/TracDiscussion-0.8-py2.6.egg/tracdiscussion/api.py", line 259, in process_discussion
    self._do_actions(context, actions)
  File "/usr/local/lib/python2.6/dist-packages/TracDiscussion-0.8-py2.6.egg/tracdiscussion/api.py", line 908, in _do_actions
    listener.forum_changed(context, forum, context.forum)
  File "/usr/local/lib/python2.6/dist-packages/TracDiscussion-0.8-py2.6.egg/tracdiscussion/tags.py", line 63, in forum_changed
    forum['id']))
KeyError: 'id'

Attachments (0)

Change History (2)

comment:1 Changed 3 years ago by Blackhex

  • Status changed from new to assigned

comment:2 Changed 2 years ago by rjollos

  • Resolution set to duplicate
  • Status changed from assigned to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.