Terse error message when creating flavor with incomplete provider object

Bug #1398636 reported by Shaunak Kashyap
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Poppy
Fix Released
Medium
Shaunak Kashyap

Bug Description

When creating a new flavor (using POST /flavors), if the "links" property in the provider object is left out, a terse error response is returned:

$ curl -H 'Content-Type: application/json' 'http://192.168.59.103:81/v1.0/flavors' -d '{ "id": "asia", "providers": [ { "provider": "fastly" } ] }'
{"message": "'links'"}

Expected: Something more verbose and actionable like this error message:

{
    "message": "{\"errors\": [{\"message\": \"['providers'][0]['links']-'links' is a required property\"}]}"
}

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to poppy (master)

Reviewed: https://review.openstack.org/138676
Committed: https://git.openstack.org/cgit/stackforge/poppy/commit/?id=b675b249e8f2e2af90afd7f3f502fbae3133588c
Submitter: Jenkins
Branch: master

commit b675b249e8f2e2af90afd7f3f502fbae3133588c
Author: Shaunak Kashyap <email address hidden>
Date: Wed Dec 3 02:03:40 2014 -0800

    Making links required so error message is improved

    Change-Id: Id25cdf077bda537911b7234a789cb11fdf1a1542
    Closes-Bug: 1398636

Changed in poppy:
status: New → Fix Committed
Changed in poppy:
milestone: none → kilo-2
importance: Undecided → Medium
Changed in poppy:
assignee: nobody → Shaunak Kashyap (ycombinator-o)
Changed in poppy:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.