Invalid XML request is returning 500 ERROR instead of Bad Request 400 exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Invalid
|
Undecided
|
Unassigned | ||
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Vijaya Erukala |
Bug Description
Description:
When Request body is sent as "Invalid XML" request, HTTP 500 ERROR is returned instead of Bad Request exception(code :400).
LOG :
-------
1. Server Creation with invalid XML
REQ: curl -i http://
novaclient.client: DEBUG: REQ BODY: <xml version="1.0" encoding="UTF-8"?> <server xmlns="http://
novaclient.client: DEBUG: RESP:{'date': 'Thu, 02 Aug 2012 08:11:31 GMT', 'status': '500', 'content-length': '192', 'content-type': 'application/xml; charset=UTF-8', 'x-compute-
2. Set Image Metadata with invalid XML
REQ: curl -i http://
novaclient.client: DEBUG: REQ BODY: <?xml version="1.0" encoding="UTF-8"?> <metadata xmlns="http://
novaclient.client: DEBUG: RESP:{'date': 'Thu, 02 Aug 2012 08:37:07 GMT', 'status': '500', 'content-length': '192', 'content-type': 'application/xml; charset=UTF-8', 'x-compute-
3. Add Security Group Rule with invalid XML
REQ: curl -i http://
novaclient.client: DEBUG: REQ BODY: <security_
novaclient.client: DEBUG: RESP:{'date': 'Thu, 02 Aug 2012 08:40:46 GMT', 'status': '500', 'content-length': '192', 'content-type': 'application/xml; charset=UTF-8', 'x-compute-
4. Create Security Group with invalid XML
REQ: curl -i http://
novaclient.client: DEBUG: REQ BODY: <security_group name="test_
novaclient.client: DEBUG: RESP:{'date': 'Thu, 02 Aug 2012 08:40:47 GMT', 'status': '500', 'content-length': '192', 'content-type': 'application/xml; charset=UTF-8', 'x-compute-
5. Reboot Server using invalid XML
REQ: curl -i http://
novaclient.client: DEBUG: REQ BODY: <?xml version="1.0" encoding="UTF-8"?> xns="http://
novaclient.client: DEBUG: RESP:{'date': 'Thu, 02 Aug 2012 08:51:36 GMT', 'status': '500', 'content-length': '192', 'content-type': 'application/xml; charset=UTF-8', 'x-compute-
6. Rebuild Server using invalid XML
novaclient.client: DEBUG:
REQ: curl -i http://
novaclient.client: DEBUG: REQ BODY: <xml version="1.0" encoding="UTF-8"?> <rebuild xmlns="http://
novaclient.client: DEBUG: RESP:{'date': 'Thu, 02 Aug 2012 08:51:36 GMT', 'status': '500', 'content-length': '192', 'content-type': 'application/xml; charset=UTF-8', 'x-compute-
description: | updated |
description: | updated |
Changed in nova: | |
importance: | Undecided → Low |
status: | Incomplete → Confirmed |
Changed in nova: | |
assignee: | nobody → Vijaya Erukala (vijaya-erukala) |
Changed in nova: | |
importance: | Low → Medium |
milestone: | none → grizzly-1 |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | grizzly-1 → 2013.1 |
Which version of Nova are you testing this against ?