*** This bug is a duplicate of bug 1220087 *** https://bugs.launchpad.net/bugs/1220087
Alex: You are correct, this issue is fixed. If user pass only white spaces to flavor name, then it should give error. { "flavor": { "name": " " "ram": 1024, "vcpus": 2, "disk": 10, "id": "10", "os-flavor-access:is_public": false } } Current behavior it creates flavor successfully. I will file a new bug to fix this issue. ** This bug has been marked a duplicate of bug 1220087 nova api should raise badrequest when create flavor with incorrect format of data in request body -- 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/1202690 Title: Incorrect HTTP response while creating flavor without name Status in OpenStack Compute (Nova): In Progress Bug description: Bug reproduced on nova/master commit ID: 80ccf6dd956ce1b2754db276e8b40f058a7e32eb When creating a new flavor if "name" key is not specified in JSON request body, it returns status error response as 500. Ideally it should return a badRequest(400) as status response. Test data: { "flavor": { "ram": 1024, "vcpus": 2, "disk": 10, "id": "12354" } } Current error response: { "computeFault":{ "message":"The server has either erred or is incapable of performing the requested operation.", "code":500 } } Expected output should return error response as shown below: { "badRequest":{ "message":"Invalid input received: 'name' argument is mandatory, "code":400 } } To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1202690/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp