get_console_output with body 'os-getConsoleOutput' set to non-integer doe not respond with HTTPBadRequest
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Roland Hochmuth |
Bug Description
"ConsoleOutputC
To test, I added a unit test in
api/
def test_get_
body = {'os-getConsole
req = webob.Request.
req.method = "POST"
req.body = jsonutils.
res = req.get_
output = jsonutils.
which supplies the value "NaN", and the test fails as 500 is returned.
Changed in nova: | |
milestone: | none → folsom-3 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | folsom-3 → 2012.2 |
I have a fix ready to go that adds validation on the type of "length" and the unit test above.