Comment 0 for bug 1206396

Revision history for this message
Rohan (kanaderohan) wrote : Leading and trailing whitespaces in Flavor name

Branch: master
Commit id : 6a3f5fd6cca81d73df9dd11f722a88752bdb3164

I am able to create flavor with name which contains leading and trailing whitespaces, I am also able to create flavor with name which contains only whitespaces.

This should not be allowed.

Request data:

{
    "flavor": {
        "name": " aaa ",
        "ram": 1024,
        "vcpus": 2,
        "disk": 10,
        "id": "10w11"
    }
}

and

{
    "flavor": {
        "name": " ",
        "ram": 1024,
        "vcpus": 2,
        "disk": 10,
        "id": "10w11"
    }
}

Detailed request and response
http://paste.openstack.org/show/42581/