Terse error message when creating flavor with incomplete provider object
Bug #1398636 reported by
Shaunak Kashyap
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://
{"message": "'links'"}
Expected: Something more verbose and actionable like this error message:
{
"message": "{\"errors\": [{\"message\": \"['providers'
}
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.
Reviewed: https:/ /review. openstack. org/138676 /git.openstack. org/cgit/ stackforge/ poppy/commit/ ?id=b675b249e8f 2e2af90afd7f3f5 02fbae3133588c
Committed: https:/
Submitter: Jenkins
Branch: master
commit b675b249e8f2e2a f90afd7f3f502fb ae3133588c
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: Id25cdf077bda53 7911b7234a789cb 11fdf1a1542
Closes-Bug: 1398636