text/html content type returned for GET /v2/images and GET /v2/image/<IMAGE_ID>

Bug #1030730 reported by Brian Waldon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Critical
Brian Waldon

Bug Description

Using the following curl request, I get a content-type of 'text/html; charset=UTF-8'. It should be 'application/json'.

curl -i -X GET -H 'X-Auth-Token: f2d5cccba62b4d0d9bd0af1421616d58' -H 'Content-Type: application/json' -H 'User-Agent: python-glanceclient' http://<HOST>:9292/v2/images/202d9596-75d6-461c-804a-81a70c553fc8

HTTP/1.1 200 OK
date: Mon, 30 Jul 2012 05:29:55 GMT
content-length: 644
content-type: text/html; charset=UTF-8
x-openstack-request-id: req-e3b501fd-02e7-45f9-9c1d-5faa463e7733

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/10519

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/10519
Committed: http://github.com/openstack/glance/commit/5112f58f7fd14c97cc4144faf66e2be0a4d386e6
Submitter: Jenkins
Branch: master

commit 5112f58f7fd14c97cc4144faf66e2be0a4d386e6
Author: Brian Waldon <email address hidden>
Date: Sun Jul 29 22:38:27 2012 -0700

    Ensure Content-Type is JSON-like where necessary

    Several API calls were returning text/html as the content-type, when
    the body was actually encoded as JSON. This ensures the places where
    that was happening set content-type to 'application/json'.

    Fixes bug 1030730

    Change-Id: Iae9ed9ca798186a0663bdee1988f3acee6906db5

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: folsom-3 → 2012.2
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.