Opened 12 years ago
Closed 12 years ago
#10196 closed defect (fixed)
TypeError: sequence item 2: expected string or Unicode, tuple found
Reported by: | Sandeep Nadkarni | Owned by: | branson |
---|---|---|---|
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 12 years ago by
Status: | new → assigned |
---|
comment:2 Changed 12 years ago by
Found it. patched per r11837, please test and let me know if resolved. Thanks!
comment:3 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
No response .. closing
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.