Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#5415 closed defect (fixed)

xmlrpcplugin-r6077 trunk breaks TRAC 0.11 with Agilo installed on Debian Lenny

Reported by: Ameise71@… Owned by: osimons
Priority: normal Component: XmlRpcPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description (last modified by osimons)

I get an error from Apache when activating xmlrpcplugin on my Debian Linux box running Trac 0.11.1. Seems to be caused by the plugin.


Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/trac/web/", line 339, in send_error
  File "/usr/lib/python2.5/site-packages/trac/web/", line 684, in render_template
    data = self.populate_data(req, data)
  File "/usr/lib/python2.5/site-packages/trac/web/", line 592, in populate_data
  File "/usr/lib/python2.5/site-packages/trac/web/", line 169, in __getattr__
    value = self.callbacks[name](self)
  File "/usr/lib/python2.5/site-packages/trac/web/", line 460, in prepare_request
    for category, name, text in contributor.get_navigation_items(req):
  File "/usr/lib/python2.5/site-packages/trac/versioncontrol/web_ui/", line 295, in get_navigation_items
    if 'BROWSER_VIEW' in req.perm:
  File "/usr/lib/python2.5/site-packages/trac/", line 523, in has_permission
    return self._has_permission(action, resource)
  File "/usr/lib/python2.5/site-packages/trac/", line 537, in _has_permission
    check_permission(action, perm.username, resource, perm)
  File "/usr/lib/python2.5/site-packages/trac/", line 424, in check_permission
  File "/usr/lib/python2.5/site-packages/trac/", line 282, in check_permission
  File "/usr/lib/python2.5/site-packages/trac/", line 343, in get_user_permissions
    for requestor in self.requestors:
  File "/usr/lib/python2.5/site-packages/trac/", line 67, in extensions
    return filter(None, [component.compmgr[cls] for cls in extensions])
  File "/usr/lib/python2.5/site-packages/trac/", line 204, in __getitem__
    component = cls(self)
  File "/usr/lib/python2.5/site-packages/trac/", line 108, in maybe_init
  File "build/bdist.linux-i686/egg/tracrpc/", line 158, in __init__
    __import__('tracrpc', ['__version__']).__version__))
  File "build/bdist.linux-i686/egg/tracrpc/", line 10, in <module>
  File "build/bdist.linux-i686/egg/tracrpc/", line 21, in <module>
ImportError: cannot import name exception_to_unicode

Attachments (1)

t5415-exception_to_unicode-r6070.diff (1.8 KB) - added by osimons 5 years ago.
Compat workaround for newer Trac util method.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 5 years ago by anonymous

Bummer. That method was added to Trac in trac:changeset:7835. Which means 0.11.3 or newer. I'll copy it into tracrpc.util as a backup for older Trac versions. Attaching patch - could you please verify it?

Changed 5 years ago by osimons

Compat workaround for newer Trac util method.

comment:2 Changed 5 years ago by Ameise71

Looks good!
Patched the files here and it does not crash anymore!
Would highly appreciate to integrate that into one of the next revisions.
Thanks for very quick help!

comment:3 Changed 5 years ago by osimons

  • Description modified (diff)

Thanks for testing. I'll commit shortly.

(Reformatted description)

comment:4 Changed 5 years ago by osimons

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

(In [6078]) XmlRpcPlugin: Fix for use of a Trac method only available on 0.11.3 or higher. Made a compat-workaround for now.

Closes #5415.

Add Comment

Modify Ticket

as 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.