Add invalid role id to user on tenant is not raising proper exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Critical
|
Dolph Mathews |
Bug Description
Add invalid role id to user on tenant is not raising proper exception. When invlid role ID is sent in the request while adding role to user on tenant, 200 response code is obtained.
Expected Result:
Expect Role not found with given ID kind of message to be thrown. i.e error response code of 404 should be throw indicating Not Found.
Actual result:
The response header and body are as follows :
{'date': 'Wed, 30 May 2012 15:20:07 GMT', 'content-type': 'application/json', 'content-length': '14', 'status': '200', 'vary': 'X-Auth-Token'}
{"role": null}
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 15:35:43 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: 14
header: Date: Wed, 30 May 2012 15:35:44 GMT
Traceback (most recent call last):
File "/usr/local/
load_
File "/usr/local/
OpenStackId
File "/usr/local/
args.
File "/usr/local/
kc.
File "/usr/local/
return self._update(route % params, None, "role")
File "/usr/local/
return self.resource_
File "/usr/local/
self.
File "/usr/local/
for (k, v) in info.iteritems():
AttributeError: 'NoneType' object has no attribute 'iteritems'
affects: | tempest → keystone |
Changed in keystone: | |
status: | New → Confirmed |
importance: | Undecided → High |
importance: | High → Critical |
Changed in keystone: | |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | folsom-2 → 2012.2 |
The invalid inputs given as role ids were:
1. 99968988798
2.alpha
3.dddd@#%%^$
4.!@#()$%^&*?<>{}[]