Keystone Admin: Creating a roleRef for a non existent user or role returns Internal Server Error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Low
|
Dolph Mathews |
Bug Description
Our tempest tests call the create_role_ref() API and pass invalid parameters for userID / roleID / tenantID.
Expected Result: HTTP 404 Not Found or 400 Bad Request
Actual Result: HTTP 200 A roleRef is created
Eg:
rohit@osbox:
Attempt to assign a role to a non existent user should fail ...
RESP: {'date': 'Tue, 15 May 2012 10:42:10 GMT', 'content-type': 'application/json', 'content-length': '79', 'status': '200', 'vary': 'X-Auth-Token'}
BODY: {u'id': u'039579bfece54
ok
The response and body above show that the call is successful, whereas in this case the userID passed was invalid.
Similarly, the following tests also should return the appropriate errors:
test_create_
test_create_
Changed in keystone: | |
assignee: | nobody → Dolph Mathews (dolph) |
Changed in keystone: | |
status: | Incomplete → In Progress |
Changed in keystone: | |
milestone: | none → folsom-2 |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | folsom-2 → 2012.2 |
Awesome bug report, thank you!