Modify

Opened 14 years ago

Closed 14 years ago

#8744 closed defect (fixed)

Trac error when unprivileged users access a ticket with children

Reported by: david.killick@… Owned by: Mark Ryan
Priority: normal Component: ChildTicketsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

Our Trac is setup so that anonymous users have only TICKET_VIEW privilege. When they view tickets without children all renders fine, however, where the ticket has children they are greeted with the following Oops:


Oops… Trac detected an internal error:

UnboundLocalError: local variable 'buttondiv' referenced before assignment


Here's the How To Reproduce bit for the Trac exception page:

How to reproduce

While doing a GET operation on /ticket/3737, Trac issued an internal error. (please provide additional details here) Request parameters: {'id': u'3737'} User agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.1.16) Gecko/20110323 Iceweasel/3.5.16 (like Firefox/3.5.16)

System Information

System information not available

Enabled Plugins

Plugin information not available

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 258, in dispatch content_type)
 File "build/bdist.linux-x86_64/egg/trac/web/chrome.py", line 840, in render_template stream |= self._filter_stream(req, method, filename, stream, data)
 File "/usr/lib/python2.5/site-packages/Genshi-0.6-py2.5.egg/genshi/core.py", line 132, in __or__ return Stream(_ensure(function(self)), serializer=self.serializer) File "build/bdist.linux-x86_64/egg/trac/web/chrome.py", line 991, in inner data)
 File "build/bdist.linux-x86_64/egg/childtickets/childtickets.py", line 211, in filter_stream snippet.append(tag.div(tablediv, buttondiv)) UnboundLocalError: local variable 'buttondiv' referenced before assignment

The action that triggered the error was:

GET: /ticket/3737


If the user then logs in, all works fine.

Attachments (0)

Change History (1)

comment:1 Changed 14 years ago by Mark Ryan

Resolution: fixed
Status: newclosed

(In [10178]) Fixes #8744:

  • Release 2.4.1 (trac 0.12)

Modify Ticket

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