Returns 500 if a body is included where not expected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Medium
|
Niall Bunting |
Bug Description
Overview:
If a user attaches a body to a HTTP message, where the API does not expect there to be a body the server returns a 500. This therefore affects a large part of the API.
Steps to reproduce (One example):
(1) The curl command, which includes a body:
curl -v -X GET http://
(2) Sends the following:
GET http://
User-Agent: curl/7.35.0.
Host: 16.49.137.85:9292.
Accept: */*.
Proxy-Connection: Keep-Alive.
X-Auth-Token: 3ee83196ecbb4a5
Content-Length: 2.
Content-Type: application/
.
[]
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?
Changed in glance: | |
assignee: | nobody → Niall Bunting (niall-bunting) |
description: | updated |
summary: |
- Get image API returns 500 if a body is included + Returns 500 if a body is included where not expected |
description: | updated |
description: | updated |
Changed in glance: | |
status: | New → In Progress |
Changed in glance: | |
importance: | Undecided → Medium |
Review https:/ /review. openstack. org/207150