Two Content-Type headers are returned

Bug #917438 reported by Pete Zaitcev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Low
Brian Waldon

Bug Description

This does not seem to hurt anything, but seems like an obvious bug:

+ curl -v -H 'Accept: application/vnd.openstack.images-v1.0' http://kvm-rei:9292/images
* About to connect() to kvm-rei port 9292 (#0)
* Trying fd2d:acfb:74cc:3::2... Permission denied
* Trying 192.168.129.18... connected
* Connected to kvm-rei (192.168.129.18) port 9292 (#0)
> GET /images HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.12.9.0 zlib/1.2.3 libidn/1.18 libssh2/1.2.2
> Host: kvm-rei:9292
> Accept: application/vnd.openstack.images-v1.0
>
< HTTP/1.1 200 OK
< Content-Type: text/html; charset=UTF-8
< Content-Type: application/json
< Content-Length: 14
< Date: Sat, 14 Jan 2012 05:51:48 GMT
<
* Connection #0 to host kvm-rei left intact
* Closing connection #0
{"images": []}

[zaitcev@kvm-rei ~]$ rpm -q openstack-glance
openstack-glance-2011.3-4.z1.fc17.noarch

Revision history for this message
Pete Zaitcev (zaitcev) wrote :

See also bug 782437, a common fix may be possible.

Revision history for this message
Jay Pipes (jaypipes) wrote :

Hmm, weird...

Changed in glance:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Brian Waldon (bcwaldon) wrote :

I feel like I've fixed this issue before, but sure enough, it is occurring on trunk on both APIs

Changed in glance:
assignee: nobody → Brian Waldon (bcwaldon)
Brian Waldon (bcwaldon)
Changed in glance:
status: Confirmed → In Progress
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/3188

Jay Pipes (jaypipes)
Changed in glance:
milestone: none → essex-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/3188
Committed: http://github.com/openstack/glance/commit/b712949ec531055661357fc2fc79c169f2223999
Submitter: Jenkins
Branch: master

commit b712949ec531055661357fc2fc79c169f2223999
Author: Brian Waldon <email address hidden>
Date: Thu Jan 19 11:15:36 2012 -0800

    Ensure we only send a single content-type header

    Fixes bug 917438

    Change-Id: Ic71bd139f77ed7f291eca258c123deb30c7177ce

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: essex-3 → 2012.1
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.