Modify

Opened 15 years ago

Closed 15 years ago

#6366 closed defect (fixed)

AttributeError: 'module' object has no attribute 'quote' in changeset [6685:7277] on RHEL5

Reported by: brett.dellegrazie@… Owned by: roadrunner
Priority: normal Component: HudsonTracPlugin
Severity: blocker Keywords:
Cc: Trac Release: 0.11

Description

Hi,

The changeset [6685:7277] which uses urllib2.quote functionality does not work on RHEL5 systems which use python 2.4.3. Instead an error is generated.

The full stack trace is shown below:

2009-12-23 16:44:34,855 Trac[main] ERROR: Internal Server Error: Traceback (most recent call last):

File "/usr/lib/python2.4/site-packages/Trac-0.11.7stable_r8965-py2.4.egg/trac/web/main.py", line 450, in _dispatch_request

dispatcher.dispatch(req)

File "/usr/lib/python2.4/site-packages/Trac-0.11.7stable_r8965-py2.4.egg/trac/web/main.py", line 206, in dispatch

resp = chosen_handler.process_request(req)

File "/usr/lib/python2.4/site-packages/Trac-0.11.7stable_r8965-py2.4.egg/trac/wiki/web_ui.py", line 121, in process_request

req.perm(page.resource).require('WIKI_VIEW')

File "/usr/lib/python2.4/site-packages/Trac-0.11.7stable_r8965-py2.4.egg/trac/perm.py", line 549, in require

if not self._has_permission(action, resource):

File "/usr/lib/python2.4/site-packages/Trac-0.11.7stable_r8965-py2.4.egg/trac/perm.py", line 540, in _has_permission

decision = PermissionSystem(self.env). \

File "/usr/lib/python2.4/site-packages/Trac-0.11.7stable_r8965-py2.4.egg/trac/perm.py", line 428, in check_permission

perm)

File "/usr/lib/python2.4/site-packages/Trac-0.11.7stable_r8965-py2.4.egg/trac/perm.py", line 284, in check_permission

permissions = PermissionSystem(self.env). \

File "/usr/lib/python2.4/site-packages/Trac-0.11.7stable_r8965-py2.4.egg/trac/perm.py", line 346, in get_user_permissions

for requestor in self.requestors:

File "/usr/lib/python2.4/site-packages/Trac-0.11.7stable_r8965-py2.4.egg/trac/core.py", line 70, in extensions

return filter(None, [component.compmgr[cls] for cls in extensions])

File "/usr/lib/python2.4/site-packages/Trac-0.11.7stable_r8965-py2.4.egg/trac/core.py", line 207, in getitem

component = cls(self)

File "/usr/lib/python2.4/site-packages/Trac-0.11.7stable_r8965-py2.4.egg/trac/core.py", line 111, in maybe_init

init(self)

File "build/bdist.linux-x86_64/egg/HudsonTrac/HudsonTracPlugin.py", line 53, in init

AttributeError: 'module' object has no attribute 'quote'

Regards,

Brett

Attachments (0)

Change History (2)

comment:1 Changed 15 years ago by anonymous

Severity: normalblocker

comment:2 Changed 15 years ago by roadrunner

Resolution: fixed
Status: newclosed

(In [7307]) Used wrong library for quoting in r7277.

This fixes #6366.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain roadrunner.
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.