yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #06537
[Bug 1237611] Re: flavor name with only white spaces should return 400 error
** Changed in: nova
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1237611
Title:
flavor name with only white spaces should return 400 error
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
When user passes only white spaces to flavor name, it creates flavor
successfully. Since name is a mandatory parameter, it should restrict
user from passing white spaces. Also leading and trailing white spaces
should be removed before saving it to the backend similar to the
instance name.
{
"flavor": {
"name": " "
"ram": 1024,
"vcpus": 2,
"disk": 10,
"id": "10",
"os-flavor-access:is_public": false
}
}
For example
name = " " #not allowed
name = "extra large" #allowed
name = " extra large " #allowed, but leading and trailing white spaces will be trimmed before saving it to the backend.
Actual output: HTTP/1.1 200 OK
Expected output: HTTP/1.1 400 Bad Request
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1237611/+subscriptions