Modify

Opened 13 years ago

Closed 12 years ago

Last modified 10 years ago

#9220 closed defect (fixed)

TypeError: 'NoneType' object is unsubscriptable

Reported by: fengxf Owned by: Ryan J Ollos
Priority: normal Component: DiscussionPlugin
Severity: normal Keywords:
Cc: beta1.se, vinay.mohan.dass Trac Release: 0.11

Description

How to Reproduce

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

(please provide additional details here)

Request parameters:

{'__FORM_TOKEN': u'354e78d7425c93b3ad5ec8bd',
 'cat_id': u'discussion',
 'discussion_action': u'delete',
 'group': '-1',
 'panel_id': u'forum',
 'path_info': None,
 'remove': u'Remove selected items',
 'selection': u'3'}

User agent: Mozilla/5.0 (X11; U; Linux x86_64; zh-CN; rv:1.9.2.23) Gecko/20110920 SUSE/3.6.23-0.2.1 Firefox/3.6.23

System Information

Trac 0.12.2
Babel 0.9.6
Docutils 0.6
FullBlog 0.1.1
Genshi 0.6
Mercurial 1.9.2+3-86380f24e697+20110908
Pygments 1.3.1
pysqlite 2.4.1
Python 2.6.5 (r265:79063, May 6 2011, 17:25:59)
[GCC 4.5.0 20100604 [gcc-4_5-branch revision 160292]]
setuptools 0.6c11
SQLite 3.6.23
Subversion 1.6.17 (r1128011)
jQuery 1.4.2

Enabled Plugins

LightGreenTheme 0.1
TracDiscussion 0.8
TracFullBlogPlugin 0.1.1
TracMercurial 0.12.0.28dev-r10784
TracTags 0.7dev
TracThemeEngine 2.0.1

Python Traceback

Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 511, in _dispatch_request
    dispatcher.dispatch(req)
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-x86_64/egg/trac/admin/web_ui.py", line 116, in process_request
    path_info)
  File "build/bdist.linux-x86_64/egg/tracdiscussion/admin.py", line 49, in render_admin_panel
    template, data = api.process_discussion(context)
  File "build/bdist.linux-x86_64/egg/tracdiscussion/api.py", line 259, in process_discussion
    self._do_actions(context, actions)
  File "build/bdist.linux-x86_64/egg/tracdiscussion/api.py", line 873, in _do_actions
    listener.forum_deleted(context, context.forum)
  File "build/bdist.linux-x86_64/egg/tracdiscussion/tags.py", line 72, in forum_deleted
    forum['id']))
TypeError: 'NoneType' object is unsubscriptable

Attachments (0)

Change History (6)

comment:1 Changed 12 years ago by Ryan J Ollos

Component: SELECT A HACKDiscussionPlugin
Owner: changed from anonymous to Radek Bartoň

Yet another incorrectly filed ticket.

comment:2 Changed 12 years ago by Ryan J Ollos

Cc: beta1.se added; anonymous removed

#10369 closed as a duplicate.

comment:3 Changed 12 years ago by Ryan J Ollos

Owner: changed from Radek Bartoň to Ryan J Ollos
Status: newassigned

comment:4 Changed 12 years ago by Ryan J Ollos

Resolution: fixed
Status: assignedclosed

(In [12055]) Fixes #9220: Fixed error when deleting forum when the tags module was enabled and the forum was being deleted from the admin panel.

comment:5 Changed 12 years ago by Ryan J Ollos

beta1.se: please let me know if you have any additional problems after updating to the latest revision of the 0.11 branch.

comment:6 Changed 10 years ago by Ryan J Ollos

Cc: vinay.mohan.dass added

#11420 closed as a duplicate.

Modify Ticket

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