Opened 10 years ago

#9802 new defect

TypeError: argument 3 must be string or read-only buffer, not None

Reported by: falkb Owned by: Emmanuel Blot
Priority: normal Component: LdapPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


On web interface page Admin-->Permission, try to add a new subject to a group. The result will be:

Datei "build/bdist.win32/egg/trac/web/", Zeile 511, in _dispatch_request
Datei "build/bdist.win32/egg/trac/web/", Zeile 237, in dispatch
  resp = chosen_handler.process_request(req)
Datei "build/bdist.win32/egg/trac/admin/", Zeile 116, in process_request
Datei "build/bdist.win32/egg/trac/admin/", Zeile 357, in render_admin_panel
  for action in perm.get_user_permissions(group):
Datei "build/bdist.win32/egg/trac/", Zeile 372, in get_user_permissions
  for perm in or []:
Datei "build/bdist.win32/egg/trac/", Zeile 173, in get_user_permissions
  subjects.update(provider.get_permission_groups(username) or [])
Datei "build/bdist.win32/egg/ldapplugin/", Zeile 128, in get_permission_groups
  ldapgroups = self._get_user_groups(username)
Datei "build/bdist.win32/egg/ldapplugin/", Zeile 177, in _get_user_groups
  if self._ldap.is_in_group(userdn, group):
Datei "build/bdist.win32/egg/ldapplugin/", Zeile 548, in is_in_group
  cr = self._compare(groupdn, self.groupmember, userdn)
Datei "build/bdist.win32/egg/ldapplugin/", Zeile 656, in _compare
  cr = self._ds.compare_s(dn, attribute, value)
Datei "D:/bitnami-trac-0.12.2/python/Lib/site-packages/ldap/", Zeile 266, in compare_s
  return self.compare_ext_s(dn,attr,value,None,None)
Datei "D:/bitnami-trac-0.12.2/python/Lib/site-packages/ldap/", Zeile 253, in compare_ext_s
  msgid = self.compare_ext(dn,attr,value,serverctrls,clientctrls)
Datei "D:/bitnami-trac-0.12.2/python/Lib/site-packages/ldap/", Zeile 250, in compare_ext
  return self._ldap_call(self._l.compare_ext,dn,attr,value,RequestControlTuples(serverctrls),RequestControlTuples(clientctrls))
Datei "D:/bitnami-trac-0.12.2/python/Lib/site-packages/ldap/", Zeile 100, in _ldap_call
  result = func(*args,**kwargs)

Attachments (0)

Change History (0)

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain Emmanuel Blot.

Add Comment

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

Note: See TracTickets for help on using tickets.