Attempt to get list ofusers by passing non existant tenant id is not raising exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Low
|
Dolph Mathews |
Bug Description
Attempt to get list ofusers by passing non existant tenant id is not raising exception, instead an empty list is returned.
Expected Result:
Message stating Tenant ID not found should be raised. i.e 404 error code should be returned.
Actual Result:
code 220 is returned and an empty list is displayed
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:40:44 GMT
connect: (10.233.52.27, 35357)
send: u'GET /v2.0/tenants/
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json
header: Vary: X-Auth-Token
header: Content-Length: 13
header: Date: Wed, 30 May 2012 16:40:44 GMT
+----+-
| id | enabled | email | name |
+----+-
+----+-
affects: | tempest → keystone |
Changed in keystone: | |
milestone: | none → folsom-2 |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | folsom-2 → 2012.2 |
This is fixed by a patch already in review: https:/ /review. openstack. org/#/c/ 6875/
After applying above patch: http:// paste.openstack .org/raw/ 18236/