Input validation broken for os-server-groups create method
Bug #1290326 reported by
Christopher Yeoh
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Christopher Yeoh |
Bug Description
Input validation of the name field for the create method for os-server-groups extension is broken in that it accepts integers, floats, etc as well as strings as the nova internals code quietly converts these to strings. This was not picked up by the unittests because they were correctly all the invalid data passed as the data was also missing the policies parameter which is compulsory.
Also we should be tightening the name field to also fail on trailing and leading spaces as allowing this tends to cause confusing situations for users (this is where we have been headed in other places in the API).
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | icehouse-rc1 → 2014.1 |
To post a comment you must log in.
Setting this to high as we want to fix the input validation issues before the interface is used and programs becoming dependent on the invalid behaviour.