OSAPI: POST with broken JSON returns 500 error

Bug #795029 reported by Brian Waldon
6
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://localhost:8774/v1.1/images/1/meta

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
<
{"cloudServersFault": {"message": "Expecting property name: line 1 column 1 (char 1)", "code": 500}}

This should be a 400 error.

Related branches

Alex Meade (alex-meade)
Changed in nova:
status: New → Confirmed
Thierry Carrez (ttx)
Changed in nova:
importance: Undecided → Low
Alex Meade (alex-meade)
Changed in nova:
assignee: nobody → Alex Meade (alex-meade)
Alex Meade (alex-meade)
Changed in nova:
status: Confirmed → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → diablo-2
Thierry Carrez (ttx)
Changed in nova:
milestone: diablo-2 → 2011.3
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.