OSAPI: POST with broken JSON returns 500 error
Bug #795029 reported by
Brian Waldon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Alex Meade |
Bug Description
If I do the following request:
curl -X POST -H "Content-Type: application/json" -d "{" -v -H "X-Auth-Token: ${NOVA_TOKEN}" http://
I get the following response:
< HTTP/1.1 500 Internal Server Error
< Content-Length: 100
< Content-Type: application/json; charset=UTF-8
< Date: Thu, 09 Jun 2011 13:13:52 GMT
<
{"cloudServersF
This should be a 400 error.
Related branches
lp:~rackspace-titan/nova/lp795029
- Ed Leafe (community): Approve
- Brian Waldon (community): Approve
-
Diff: 112 lines (+43/-3)3 files modifiednova/api/openstack/wsgi.py (+18/-3)
nova/exception.py (+4/-0)
nova/tests/api/openstack/test_api.py (+21/-0)
Changed in nova: | |
status: | New → Confirmed |
Changed in nova: | |
importance: | Undecided → Low |
Changed in nova: | |
assignee: | nobody → Alex Meade (alex-meade) |
Changed in nova: | |
status: | Confirmed → Fix Committed |
Changed in nova: | |
milestone: | none → diablo-2 |
Changed in nova: | |
milestone: | diablo-2 → 2011.3 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.