Modify

Opened 2 years ago

Closed 2 years ago

#10196 closed defect (fixed)

TypeError: sequence item 2: expected string or Unicode, tuple found

Reported by: sandeep.nadkarni@… Owned by: sandinak
Priority: high Component: DirectoryAuthPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

Traceback (most recent call last):

File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 525, in _dispatch_request

dispatcher.dispatch(req)

File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 246, in dispatch

resp = chosen_handler.process_request(req)

File "/usr/lib/python2.6/site-packages/trac/wiki/web_ui.py", line 120, in process_request

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

File "/usr/lib/python2.6/site-packages/trac/perm.py", line 575, in require

if not self._has_permission(action, resource):

File "/usr/lib/python2.6/site-packages/trac/perm.py", line 567, in _has_permission

check_permission(action, perm.username, resource, perm)

File "/usr/lib/python2.6/site-packages/trac/perm.py", line 454, in check_permission

perm)

File "/usr/lib/python2.6/site-packages/trac/perm.py", line 286, in check_permission

get_user_permissions(username)

File "/usr/lib/python2.6/site-packages/trac/perm.py", line 372, in get_user_permissions

for perm in self.store.get_user_permissions(username) or []:

File "/usr/lib/python2.6/site-packages/TracActiveDirectoryAuth-0.3-py2.6.egg/tracext/adauth/api.py", line 43, in get_user_permissions

subjects.update(provider.get_permission_groups(username))

File "/usr/lib/python2.6/site-packages/TracActiveDirectoryAuth-0.3-py2.6.egg/tracext/adauth/auth.py", line 180, in get_permission_groups

dn = self._get_user_dn(username)

File "/usr/lib/python2.6/site-packages/TracActiveDirectoryAuth-0.3-py2.6.egg/tracext/adauth/auth.py", line 237, in _get_user_dn

if self.has_user(user):

File "/usr/lib/python2.6/site-packages/TracActiveDirectoryAuth-0.3-py2.6.egg/tracext/adauth/auth.py", line 129, in has_user

users = self.get_users()

File "/usr/lib/python2.6/site-packages/TracActiveDirectoryAuth-0.3-py2.6.egg/tracext/adauth/auth.py", line 76, in get_users

'proxyAddresses', 'displayName'])

File "/usr/lib/python2.6/site-packages/TracActiveDirectoryAuth-0.3-py2.6.egg/tracext/adauth/auth.py", line 389, in _ad_search

keystr = ",".join([ base_dn, str(scope), filter, ":".join(attrs) ])

TypeError: sequence item 2: expected string or Unicode, tuple found

Attachments (0)

Change History (3)

comment:1 Changed 2 years ago by anonymous

  • Status changed from new to assigned

Looking at this .. can you send me the [account-manager] section of your trac.ini (Sanitized ;-) pls? There's two sequences there, and both are pre-defined in code.. so I am not sure what it's actually complaining about. Thanks.


comment:2 Changed 2 years ago by anonymous

Found it. patched per r11837, please test and let me know if resolved. Thanks!

comment:3 Changed 2 years ago by sandinak

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

No response .. closing

Add Comment

Modify Ticket

Action
as closed The owner will remain sandinak.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.