← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1172106] Re: Live LDAP tests fail on unicode names

 

** Changed in: keystone/icehouse
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1172106

Title:
  Live LDAP tests fail on unicode names

Status in OpenStack Identity (Keystone):
  Fix Released
Status in Keystone icehouse series:
  Fix Released

Bug description:
  Running ./run_test.sh _ldap_liveldap.py:LiveLDAPIdentity fails due to
  "test_create_unicode_user_name" test,

  ======================================================================
  ERROR: test_create_unicode_user_name (_ldap_livetest.LiveLDAPIdentity)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/opt/stack/keystone/tests/test_backend.py", line 144, in test_create_unicode_user_name
      ref = self.identity_api.create_user(user['id'], user)
    File "/opt/stack/keystone/keystone/identity/backends/ldap/core.py", line 166, in create_user
      return identity.filter_user(self.user.create(user))
    File "/opt/stack/keystone/keystone/identity/backends/ldap/core.py", line 419, in create
      self.affirm_unique(values)
    File "/opt/stack/keystone/keystone/common/ldap/core.py", line 243, in affirm_unique
      self.get_by_name(values['name'])
    File "/opt/stack/keystone/keystone/common/ldap/core.py", line 323, in get_by_name
      res = self.get_all(query)
    File "/opt/stack/keystone/keystone/common/ldap/core.py", line 647, in get_all
      for x in self._ldap_get_all(filter)
    File "/opt/stack/keystone/keystone/common/ldap/core.py", line 309, in _ldap_get_all
      self.attribute_mapping.values())
    File "/opt/stack/keystone/keystone/common/ldap/core.py", line 482, in search_s
      res = self.conn.search_s(dn, scope, query, attrlist)
    File "/usr/local/lib/python2.7/dist-packages/ldap/ldapobject.py", line 552, in search_s
      return self.search_ext_s(base,scope,filterstr,attrlist,attrsonly,None,None,timeout=self.timeout)
    File "/usr/local/lib/python2.7/dist-packages/ldap/ldapobject.py", line 545, in search_ext_s
      msgid = self.search_ext(base,scope,filterstr,attrlist,attrsonly,serverctrls,clientctrls,timeout,sizelimit)
    File "/usr/local/lib/python2.7/dist-packages/ldap/ldapobject.py", line 541, in search_ext
      timeout,sizelimit,
    File "/usr/local/lib/python2.7/dist-packages/ldap/ldapobject.py", line 99, in _ldap_call
      result = func(*args,**kwargs)
  UnicodeEncodeError: 'ascii' codec can't encode characters in position 11-12: ordinal not in range(128)
  ........
  ........
  FAILED (SKIP=29, errors=1)

  Seems like the test was created for sql and might be tested with ldap.

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1172106/+subscriptions