Modify ↓
#12407 closed defect (fixed)
NameError: global name 'AuthzFileReader' is not defined
Reported by: | Andrey Rodionov | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | TracHacksPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: |
Description
How to Reproduce
While doing a POST operation on /newhack
, Trac issued an internal error.
(please provide additional details here)
Request parameters:
{'__FORM_TOKEN': u'5145621364515560df639f5a', 'description': u'his macro accepts a comma-separated list of keyed parameters, in the form "key=value" and "id".\r\n - "key" -- then report parameter\r\n - "value" -- then value of report parameter\r\n - "id" -- then report id of the Trac', 'installation': u'General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page.', 'name': u'WikiReport', 'preview': u'Preview', 'release': u'1.0', 'tags': u'macro ', 'title': u'iki macro inserts the Trac report into the wiki page', 'type': u'macro'}
User agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2226.0 Safari/537.36
System Information
System information not available
Enabled Plugins
Plugin information not available
Python Traceback
Traceback (most recent call last): File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/Trac-1.0.6post2-py2.6.egg/trac/web/main.py", line 534, in _dispatch_request dispatcher.dispatch(req) File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/Trac-1.0.6post2-py2.6.egg/trac/web/main.py", line 227, in dispatch resp = chosen_handler.process_request(req) File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/TracHacks-3.0dev-py2.6.egg/trachacks/web_ui.py", line 261, in process_request return self.render_new(req, data, hacks) File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/TracHacks-3.0dev-py2.6.egg/trachacks/web_ui.py", line 392, in render_new context = self.form.validate(data) File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/TracHacks-3.0dev-py2.6.egg/trachacks/validate.py", line 278, in validate context.fields[name] = field.validate(context, value) File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/TracHacks-3.0dev-py2.6.egg/trachacks/validate.py", line 219, in validate return Aspect.apply(context, value, self.aspect) File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/TracHacks-3.0dev-py2.6.egg/trachacks/validate.py", line 98, in apply value = aspect(context, value) File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/TracHacks-3.0dev-py2.6.egg/trachacks/validate.py", line 110, in __call__ return Aspect.apply(context, value, *self.aspects) File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/TracHacks-3.0dev-py2.6.egg/trachacks/validate.py", line 98, in apply value = aspect(context, value) File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/TracHacks-3.0dev-py2.6.egg/trachacks/web_ui.py", line 99, in __call__ authz = AuthzFileReader().read(authz_file) NameError: global name 'AuthzFileReader' is not defined
Attachments (0)
Change History (5)
comment:1 Changed 10 years ago by
Component: | SELECT A HACK → TracHacksPlugin |
---|---|
Owner: | set to Ryan J Ollos |
Status: | new → accepted |
comment:4 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Changes have been tested and deployed to trac-hacks.org. Sorry for again for the trouble. I was sloppy with the changes to SvnAuthzAdminPlugin and shouldn't have deployed them to the live site so soon. Please let me know if you encounter any trouble.
Note: See
TracTickets for help on using
tickets.
Thanks for reporting and sorry for the trouble. I'll have it fixed today.