A PUT or POST sent to placement API without a content-type header will result in a 500, should be a 400
Bug #1623517 reported by
Chris Dent
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Chris Dent |
Bug Description
If, by some twist of fate, a user agent send a PUT or POST requests to the placement API without a content-type header, the service will have an uncaught KeyError exception raised in webob as it tries to parse the body of the request. Tests which thought they were testing for this were not. The webob.dec.wsgify decorator is doing some work before the thing which the test exercises gets involved. So further tests and guards are required to avoid the 500.
tags: | added: api placement scheduler |
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Low |
To post a comment you must log in.
https:/ /review. openstack. org/#/c/ 370154/