Ticket #3063 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

UnboundLocalError: local variable 'groups_dict' referenced before assignment

Reported by: anonymous Assigned to: robert_martin
Priority: normal Component: FineGrainedPageAuthzEditorPlugin
Severity: major Keywords:
Cc: Trac Release: 0.11

Description

after clicking on the Link to the editor (in the admin menu):

Trac detected an internal error: UnboundLocalError?: local variable 'groups_dict' referenced before assignment

File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r7086-py2.4.egg/trac/web/main.py", line 423, in _dispatch_request

dispatcher.dispatch(req)

File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r7086-py2.4.egg/trac/web/main.py", line 197, in dispatch

resp = chosen_handler.process_request(req)

File "/usr/lib/python2.4/site-packages/Trac-0.11dev_r7086-py2.4.egg/trac/admin/web_ui.py", line 109, in process_request

path_info)

File "build/bdist.linux-i686/egg/page_authz_policy_editor/pape_admin.py", line 105, in render_admin_panelFile "build/bdist.linux-i686/egg/page_authz_policy_editor/pape_admin.py", line 97, in _get_groups_and_members

System Information:

User Agent: Opera/9.50 (X11; Linux x86_64; U; en)Trac: 0.11dev-r7086 Python: 2.4.4 (#1, Apr 15 2008, 23:37:53) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] setuptools: 0.6c6 SQLite: 3.3.8 pysqlite: 2.3.2 Genshi: 0.4.4 mod_python: 3.2.10 Subversion: 1.4.2 (r22196) jQuery: 1.2.3

Attachments

Change History

05/26/08 15:10:30 changed by robert_martin

  • status changed from new to assigned.

05/26/08 15:10:42 changed by robert_martin

  • status changed from assigned to new.

05/26/08 15:37:29 changed by robert_martin

  • release changed from 0.10 to 0.11.
  • status changed from new to closed.
  • resolution set to fixed.

groups_dict is now instantiated before the first conditional in _get_groups_and_members. If there was no group file then the check of having the entries caused an exception, rather than handling it gracefully as intended.


Add/Change #3063 (UnboundLocalError: local variable 'groups_dict' referenced before assignment)




Change Properties
Action