500 Error returned by Keystone server on passing invalid body for POST /tokens
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Undecided
|
Unmesh Gurjar |
Bug Description
Keystone returns a 500 Internal Server error for the following POST /v2.0/tokens request
with invalid body
1. Pass nothing in the body or pass a blank JSON dict {} -
Response ->
{
"error": {
"message": "An unexpected error prevented the server from fulfilling your request. argument of type 'NoneType' is not iterable",
"code": 500,
"title": "Internal Server Error"
}
}
2. Do not pass passwordCredentials in auth -- "auth": { }
Response-->
{
"error": {
"message": "An unexpected error prevented the server from fulfilling your request. local variable 'expiry' referenced before assignment",
"code": 500,
"title": "Internal Server Error"
}
}
The expected HTTP response in all the cases above should have been a 400 Bad Request.
Changed in keystone: | |
assignee: | nobody → Unmesh Gurjar (unmesh-gurjar) |
Changed in keystone: | |
status: | New → Confirmed |
Changed in keystone: | |
milestone: | none → grizzly-1 |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | grizzly-1 → 2013.1 |
Fix proposed to branch: master /review. openstack. org/14281
Review: https:/