password type differences when create user
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Undecided
|
Wu Wenxiang |
Bug Description
When create user, /opt/stack/
in 500 error if you specify a number type in the password.
2012-09-21 17:21:20,161 ERROR wsgi __call__ object of type 'int' has no len()
Traceback (most recent call last):
File "/opt/stack/
result = method(context, **params)
File "/opt/stack/
context, user_id, user_ref)
File "/opt/stack/
return f(*args, **kw)
File "/opt/stack/
return method(*args, **kwargs)
File "/opt/stack/
user = _ensure_
File "/opt/stack/
user_
File "/opt/stack/
password_utf8 = trunc_password(
File "/opt/stack/
if len(password) > MAX_PASSWORD_
TypeError: object of type 'int' has no len()
(keystone.
(keystone.
(keystone.
(keystone.
(keystone.
(keystone.
(keystone.
(eventlet.
I think should validate the password for when specify a numeric type.
Changed in keystone: | |
status: | New → Confirmed |
assignee: | nobody → Wu Wenxiang (wu-wenxiang) |
Changed in keystone: | |
status: | Confirmed → In Progress |
Changed in keystone: | |
milestone: | none → grizzly-2 |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | grizzly-2 → 2013.1 |
I couldn't reproduce this bug which you reported. localhost: 35357/v2. 0 tenant-create --name=test ------- +------ ------- ------- ------- ------- + ------- +------ ------- ------- ------- ------- + cb9b2993ec76c2f 4d | ------- +------ ------- ------- ------- ------- + localhost: 35357/v2. 0 user-create --name=test --pass=231 --tenant- id=b2eb5f262ed3 4aacb9b2993ec76 c2f4d ----+-- ------- ------- ------- ------- ----+ ----+-- ------- ------- ------- ------- ----+ ab8ba3fd79a5e21 24 | cb9b2993ec76c2f 4d | ----+-- ------- ------- ------- ------- ----+
pear@U64-1204:~$ keystone --token 231 --endpoint http://
+------
| Property | Value |
+------
| description | |
| enabled | True |
| id | b2eb5f262ed34aa
| name | test |
+------
pear@U64-1204:~$ keystone --token 231 --endpoint http://
+------
| Property | Value |
+------
| email | |
| enabled | True |
| id | 1ae36ae1e1b54bd
| name | test |
| tenantId | b2eb5f262ed34aa
+------
1. Which version did you meet this issue?
2. How could you reproduce this issue?
Thanks