Glance v1: HTTP HEAD on /images/detail returns 500
Bug #1297358 reported by
Alex Meade
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Medium
|
Arnaud Legendre |
Bug Description
Attempting a HEAD request on the /images/detail resource results in a 500 response. This should ideally be an HTTP 405 response.
This issue does not occur when doing a HEAD on /images for some reason
curl -i -X HEAD -H "X-Auth-Token: $AUTH_TOKEN" -H 'Content-Type: application/json' -H 'User-Agent: python-
HTTP/1.1 500 Internal Server Error
Content-Type: text/plain
Content-Length: 0
Date: Tue, 25 Mar 2014 15:18:34 GMT
Connection: close
The traceback for the error can be found here: http://
Changed in glance: | |
assignee: | nobody → Arnaud Legendre (arnaudleg) |
Changed in glance: | |
milestone: | none → juno-1 |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | juno-1 → 2014.2 |
To post a comment you must log in.
We should probably add a Allow header to the response especially for a 405.
Please refer https:/ /review. openstack. org/#/c/ 78050/ and https:/ /bugs.launchpad .net/glance/ +bug/1287951
( http:// www.w3. org/Protocols/ rfc2616/ rfc2616- sec10.html )