Opened 5 years ago

Closed 5 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



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/", line 450, in _dispatch_request


File "/usr/lib/python2.4/site-packages/Trac-0.11.7stable_r8965-py2.4.egg/trac/web/", 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/", line 121, in process_request


File "/usr/lib/python2.4/site-packages/Trac-0.11.7stable_r8965-py2.4.egg/trac/", 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/", 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/", line 428, in check_permission


File "/usr/lib/python2.4/site-packages/Trac-0.11.7stable_r8965-py2.4.egg/trac/", 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/", 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/", 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/", line 207, in getitem

component = cls(self)

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


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

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



Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by anonymous

  • Severity changed from normal to blocker

comment:2 Changed 5 years ago by roadrunner

  • Resolution set to fixed
  • Status changed from new to closed

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

This fixes #6366.

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from roadrunner. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.