Public bug reported: Overview: If a user attaches a body to a http get to get the image data a 500 response is returned as the API did not expect a body.
Steps to reproduce: (1) The curl command, which includes a body: curl -v -X GET http://16.49.137.85:9292/v2/images/5619cf1f-5c43-4a1d-a90b-aa7354e453e7 -H "X-Auth-Token: 3ee83196ecbb4a559b945ac849c1520e" -d '[]' (2) Sends the following: GET http://16.49.137.85:9292/v2/images/5619cf1f-5c43-4a1d-a90b-aa7354e453e7 HTTP/1.1. User-Agent: curl/7.35.0. Host: 16.49.137.85:9292. Accept: */*. Proxy-Connection: Keep-Alive. X-Auth-Token: 3ee83196ecbb4a559b945ac849c1520e. Content-Length: 2. Content-Type: application/x-www-form-urlencoded. . [] Actual: The response in a 500 error. Expected: It may be nice if it caught the fact that a body was not expected and returned a error early, to stop the whole body being uploaded. I would like some input into what people think the expected behavior should be? ** 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/1475647 Title: Get image API returns 500 if a body is included Status in Glance: New Bug description: Overview: If a user attaches a body to a http get to get the image data a 500 response is returned as the API did not expect a body. Steps to reproduce: (1) The curl command, which includes a body: curl -v -X GET http://16.49.137.85:9292/v2/images/5619cf1f-5c43-4a1d-a90b-aa7354e453e7 -H "X-Auth-Token: 3ee83196ecbb4a559b945ac849c1520e" -d '[]' (2) Sends the following: GET http://16.49.137.85:9292/v2/images/5619cf1f-5c43-4a1d-a90b-aa7354e453e7 HTTP/1.1. User-Agent: curl/7.35.0. Host: 16.49.137.85:9292. Accept: */*. Proxy-Connection: Keep-Alive. X-Auth-Token: 3ee83196ecbb4a559b945ac849c1520e. Content-Length: 2. Content-Type: application/x-www-form-urlencoded. . [] Actual: The response in a 500 error. Expected: It may be nice if it caught the fact that a body was not expected and returned a error early, to stop the whole body being uploaded. I would like some input into what people think the expected behavior should be? To manage notifications about this bug go to: https://bugs.launchpad.net/glance/+bug/1475647/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

