Modify ↓
Opened 12 years ago
Closed 12 years ago
#11496 closed defect (duplicate)
UnboundLocalError: local variable 'data' referenced before assignment
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | general | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
How to Reproduce
While doing a GET operation on /changeset/latest/plugins/1.0/spam-filter, Trac issued an internal error.
(please provide additional details here)
Request parameters:
{'format': u'zip',
'new': u'latest',
'new_path': u'/plugins/1.0/spam-filter',
'old_path': u'/'}
User agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0
System Information
System information not available
Enabled Plugins
Plugin information not available
Python Traceback
Traceback (most recent call last):
File "/usr/local/virtualenv/1.1dev/lib/python2.7/site-packages/Trac-1.1.2dev_r11819-py2.7.egg/trac/web/main.py", line 497, in _dispatch_request
dispatcher.dispatch(req)
File "/usr/local/virtualenv/1.1dev/lib/python2.7/site-packages/Trac-1.1.2dev_r11819-py2.7.egg/trac/web/main.py", line 214, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/local/virtualenv/1.1dev/lib/python2.7/site-packages/Trac-1.1.2dev_r11819-py2.7.egg/trac/versioncontrol/web_ui/changeset.py", line 353, in process_request
partial(self._zip_iter_nodes, req, repos, data))
File "/usr/local/virtualenv/1.1dev/lib/python2.7/site-packages/Trac-1.1.2dev_r11819-py2.7.egg/trac/versioncontrol/web_ui/util.py", line 223, in render_zip
zipfile.writestr(create_zipinfo(path, **kwargs), data)
UnboundLocalError: local variable 'data' referenced before assignment
Attachments (0)
Note:
See TracTickets
for help on using tickets.



A duplicate of #11450. Please submit after searching issue on this site. Thanks.