Modify

Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#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 9 years ago by Ryan J Ollos

Component: SELECT A HACKTracHacksPlugin
Owner: set to Ryan J Ollos
Status: newaccepted

Thanks for reporting and sorry for the trouble. I'll have it fixed today.

comment:2 Changed 9 years ago by Ryan J Ollos

In 14704:

3.0.0dev: Modify import for SvnAuthzAdminPlugin API Change in [14573].

This change should have been made in [14621]. Refs #12407.

comment:3 Changed 9 years ago by Ryan J Ollos

In 14705:

3.0.0dev: Yet another change to adapt to [14573]. Refs #12407.

comment:4 Changed 9 years ago by Ryan J Ollos

Resolution: fixed
Status: acceptedclosed

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.

comment:5 Changed 9 years ago by Andrey Rodionov

It works, thanks.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.