Incorrect content-type returned on GET '/v1/images/<id>'

Bug #800947 reported by Justin Shepherd
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Undecided
Brian Waldon

Bug Description

Prior to revno: 140, a GET request to /v1/images/<id> would return the following content-type header:

content-type: application/octet-stream

After merging revno 140 and 141, it now returns the following content-type header:

content-type: text/html; charset=UTF-8, application/octet-stream

-----

This was raised as a bug in a merge-prop for functional testing:

https://code.launchpad.net/~jshepher/glance/functional_tests_using_httplib2/+merge/65078

Related branches

Revision history for this message
Justin Shepherd (jshepher) wrote :

The linked branch does not fix the issue.. If you pull revno 150 you can see the error generated..

Revision history for this message
Brian Waldon (bcwaldon) wrote :

The serialization code was adding the application/octet-stream in a second content-type header rather than overwriting the existing header. The duplicate mimetypes in a single header was your client being "helpful."

Changed in glance:
status: New → In Progress
assignee: nobody → Brian Waldon (bcwaldon)
Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: none → diablo-2
Thierry Carrez (ttx)
Changed in glance:
milestone: diablo-2 → 2011.3
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.