Modify ↓
Opened 13 years ago
Closed 13 years ago
#10685 closed defect (cantfix)
UnboundLocalError: local variable 'conn' referenced before assignment
Reported by: | tubrostr | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | 0.12.2 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
How to Reproduce
While doing a GET operation on /query
, Trac issued an internal error.
(please provide additional details here)
Request parameters:
{'col': [u'id', u'summary', u'status', u'owner', u'type', u'component', u'resolution'], 'format': u'tab', 'order': u'priority', 'source_field': u'ASP', 'status': u'closed'}
User agent: Mozilla/5.0 (Windows NT 6.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
System Information
System information not available
Enabled Plugins
Plugin information not available
Python Traceback
Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/Trac-0.12.2-py2.6.egg/trac/web/main.py", line 511, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.6/site-packages/Trac-0.12.2-py2.6.egg/trac/web/main.py", line 237, in dispatch resp = chosen_handler.process_request(req) File "/usr/lib/python2.6/site-packages/Trac-0.12.2-py2.6.egg/trac/ticket/query.py", line 865, in process_request req.perm.assert_permission('TICKET_VIEW') File "/usr/lib/python2.6/site-packages/Trac-0.12.2-py2.6.egg/trac/perm.py", line 575, in require if not self._has_permission(action, resource): File "/usr/lib/python2.6/site-packages/Trac-0.12.2-py2.6.egg/trac/perm.py", line 567, in _has_permission check_permission(action, perm.username, resource, perm) File "/usr/lib/python2.6/site-packages/Trac-0.12.2-py2.6.egg/trac/perm.py", line 454, in check_permission perm) File "/snc/trac/projects/spc/plugins/SNC_authorization.py", line 161, in check_permission self.read_access_level(username) File "/snc/trac/projects/spc/plugins/SNC_authorization.py", line 150, in read_access_level conn.close () UnboundLocalError: local variable 'conn' referenced before assignment
Attachments (0)
Note:
See TracTickets
for help on using tickets.
PluginIssue. Please report errors about
SNC_authorization.py
to the plugin maintainers.