Malformed XML request body causes 500 error
Bug #814012 reported by
Salvatore Orlando
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Low
|
dan wendlandt | ||
quantum (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
When using Quantum API with XML format, if the request body is not a well-formed XML string, an exception is raised resulting in a 500 error.
Quantum API should return a 400 error (BadRequest).
Stacktrace available at: paste.openstack
Related branches
lp:~danwent/neutron/bug814012
- Somik Behera: Approve (netstack-core)
- Salvatore Orlando: Approve
-
Diff: 52 lines (+26/-1)2 files modifiedquantum/common/wsgi.py (+4/-1)
tests/unit/test_api.py (+22/-0)
Changed in quantum: | |
assignee: | nobody → Salvatore Orlando (salvatore-orlando) |
Changed in quantum: | |
importance: | Undecided → Low |
Changed in quantum: | |
status: | Fix Committed → Fix Released |
Changed in quantum (Ubuntu): | |
status: | New → Fix Released |
To post a comment you must log in.
Salvatore, is there a particular unit test that is failing here? If so, could you call out the test by name? Or are you looking for someone to write the test and fix the bug?