Keypair create with invalid Json Is not throwing a proper exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Sirisha Devineni |
Bug Description
Key pair create with invalid Json request is expected to throw a BadRequest but throwing Http 500 error.
root@ubuntu1204
HTTP/1.1 500 Internal Server Error
Via: 1.1 HYSPROXY2, 1.1 HYSPROXY1
Connection: Keep-Alive
Proxy-Connection: Keep-Alive
Content-Length: 128
Date: Wed, 12 Sep 2012 16:05:19 GMT
Content-Type: application/json; charset=UTF-8
X-Compute-
{"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}root@
root@ubuntu1204
root@ubuntu1204
root@ubuntu1204
HTTP/1.1 500 Internal Server Error
Via: 1.1 HYSPROXY2, 1.1 HYSPROXY1
Connection: Keep-Alive
Proxy-Connection: Keep-Alive
Content-Length: 128
Date: Wed, 12 Sep 2012 16:09:02 GMT
Content-Type: application/json; charset=UTF-8
X-Compute-
{"computeFault": {"message": "The server has either erred or is incapable of performing the requested operation.", "code": 500}}
Here keypair and name are the mandatory keys that should present in the request body. If user skips those keys in req body and tries to create a keypair, expecting an user readable error message.
Changed in nova: | |
assignee: | nobody → Sirisha Devineni (sirisha-devineni) |
Changed in nova: | |
status: | New → In Progress |
Changed in nova: | |
milestone: | none → folsom-rc1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | folsom-rc1 → 2012.2 |
Fix proposed to branch: master /review. openstack. org/12873
Review: https:/