AttributeError is not caught when creating a role with bad request
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
In Progress
|
Low
|
Haiwei Xu |
Bug Description
When I directly use the 'curl' command to create a new role with a valid body, I got a server error(500).
curl -i -X POST http://
......
KzfH3T6aXNeUzyn
HTTP/1.1 500 Internal Server Error
Vary: X-Auth-Token
Content-Type: application/json
Content-Length: 189
Date: Tue, 04 Mar 2014 10:59:10 GMT
{"error": {"message": "An unexpected error prevented the server from fulfilling your request. 'unicode' object has no attribute 'iteritems'", "code": 500, "title": "Internal Server Error"}}
And the log in the keystone service.
2014-03-04 19:59:10.973 ERROR keystone.
2014-03-04 19:59:10.973 TRACE keystone.
2014-03-04 19:59:10.973 TRACE keystone.
2014-03-04 19:59:10.973 TRACE keystone.
2014-03-04 19:59:10.973 TRACE keystone.
2014-03-04 19:59:10.973 TRACE keystone.
2014-03-04 19:59:10.973 TRACE keystone.
2014-03-04 19:59:10.973 TRACE keystone.
2014-03-04 19:59:10.973 TRACE keystone.
2014-03-04 19:59:10.973 TRACE keystone.
2014-03-04 19:59:10.973 TRACE keystone.
2014-03-04 19:59:10.973 TRACE keystone.
2014-03-04 19:59:10.973 TRACE keystone.
2014-03-04 19:59:10.973 TRACE keystone.
The AttributeError is not caught.
Changed in keystone: | |
assignee: | nobody → Haiwei Xu (xu-haiwei) |
Changed in keystone: | |
importance: | Undecided → Low |
Fix proposed to branch: master /review. openstack. org/77757
Review: https:/