yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #42188
[Bug 1476253] Re: Invalid json body in API requests causes 500
** Changed in: glance
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1476253
Title:
Invalid json body in API requests causes 500
Status in Glance:
Fix Released
Bug description:
Overview:
If when creating a member the user either puts a number as the body or sends some type of string will cause the server to fall over due to a type error.
How to produce:
curl -X POST http://your-ip:9292/v2/images/your-image-id/members -H "X-Auth-Token: your-auth-token" -d 123
Rather than a number lots of inputs can cause the type error to be
thrown such as '[]' or '["some text"]'.
Actual:
500
Expected:
400 with body invalid message.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1476253/+subscriptions
References