Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

#8305 closed defect (duplicate)

UnboundLocalError: local variable 'data' referenced before assignment

Reported by: d Owned by:
Priority: normal Milestone:
Component: general Version: 0.11.1
Severity: normal Keywords:
Cc: dimon1967@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a POST operation on /attachment/wiki/DevelopmentReporting/ERP - Survey Tool Specification v0.78.doc, Trac issued an internal error.

(after upgrading to ubuntu 9.04 on AMD 64. Tested wiht Firefox 3.0.10)

Request parameters:

{'__FORM_TOKEN': u'7433c8ccfd4332f4472c0012',
 'action': [u'delete', u'delete'],
 'path': u'DevelopmentReporting/ERP - Survey Tool Specification v0.78.doc',
 'realm': u'wiki'}

User Agent was: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.10) Gecko/2009042523 Ubuntu/9.04 (jaunty) Firefox/3.0.10

System Information

Trac 0.11.1
Python 2.6.2 (release26-maint, Apr 19 2009, 02:15:38)
[GCC 4.3.3]
setuptools 0.6c9
SQLite 3.6.10
pysqlite 2.5.0
Genshi 0.5.1
mod_python 3.3.1
Pygments 0.10
Subversion 1.5.4 (r33841)
jQuery: 1.2.6

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 423, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 197, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.6/dist-packages/trac/attachment.py", line 405, in process_request
    return 'attachment.html', data, None
UnboundLocalError: local variable 'data' referenced before assignment

Attachments (0)

Change History (1)

comment:1 by Christian Boos, 16 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #7876, please upgrade to at least 0.11.3.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.