yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #35489
[Bug 1476253] [NEW] Create a member with unexpected body returns 500
Public bug reported:
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.
** Affects: glance
Importance: Undecided
Assignee: Niall Bunting (niall-bunting)
Status: New
** Changed in: glance
Assignee: (unassigned) => Niall Bunting (niall-bunting)
--
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:
Create a member with unexpected body returns 500
Status in Glance:
New
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
Follow ups