The code tries to construct a byte string object to test the
length of the string field (The explicit construction of the
string object is neccessary as sometime v can be other types,
for example int). This will cause error if the string field
(v) is a unicode object.
Reviewed: https:/ /review. openstack. org/26465 github. com/openstack/ keystone/ commit/ 78dcfc6446d2a36 7565f2fa58bb0da 340c6928f8
Committed: http://
Submitter: Jenkins
Branch: master
commit 78dcfc6446d2a36 7565f2fa58bb0da 340c6928f8
Author: Liang Chen <email address hidden>
Date: Tue Apr 9 18:03:48 2013 +0800
Fixed unicode username user creation error
The code tries to construct a byte string object to test the
length of the string field (The explicit construction of the
string object is neccessary as sometime v can be other types,
for example int). This will cause error if the string field
(v) is a unicode object.
Fixes bug #1166701
Change-Id: I73cee4da5c9f91 ce135e7f81d88c9 79871f61767