Attempt to add role to nonexistant user on tenant is not throwing an error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Low
|
Dolph Mathews |
Bug Description
Attempt to add role to non existant user on tenant is not throwing an appropriate error message.
Expected Result:
Error message stating that user is not found should be thrown. i.e an error code of 404 should be thrown leading to Not Found exception.
Actual result:
Response code of 200 is returned and details of role in response body.
The response header and body are as follows:
{'date': 'Wed, 30 May 2012 15:20:07 GMT', 'content-type': 'application/json', 'content-length': '80', 'status': '200', 'vary': 'X-Auth-Token'}
{"role": {"id": "d1e7703c561148
LOG:
----------
rajalakshmi_
connect: (10.233.52.27, 5000)
send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 10.233.
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json
header: Vary: X-Auth-Token
header: Content-Length: 2229
header: Date: Wed, 30 May 2012 16:09:12 GMT
connect: (10.233.52.27, 35357)
send: u'PUT /v2.0/tenants/
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json
header: Vary: X-Auth-Token
header: Content-Length: 69
header: Date: Wed, 30 May 2012 16:09:12 GMT
rajalakshmi_
connect: (10.233.52.27, 5000)
send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 10.233.
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json
header: Vary: X-Auth-Token
header: Content-Length: 2229
header: Date: Wed, 30 May 2012 16:09:33 GMT
connect: (10.233.52.27, 35357)
send: u'PUT /v2.0/tenants/
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json
header: Vary: X-Auth-Token
header: Content-Length: 69
header: Date: Wed, 30 May 2012 16:09:33 GMT
rajalakshmi_
affects: | tempest → keystone |
affects: | keystone → tempest |
affects: | tempest → python-keystoneclient |
affects: | python-keystoneclient → keystone |
Changed in keystone: | |
milestone: | none → folsom-2 |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | folsom-2 → 2012.2 |
Looks like a dup of https:/ /bugs.launchpad .net/keystone/ +bug/999608, however with different results.
What branch did you see this on?