Two Content-Type headers are returned

Bug #917438 reported by Pete Zaitcev on 2012-01-17
This bug affects 1 person
Affects Status Importance Assigned to Milestone
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 connected
* Connected to kvm-rei ( port 9292 (#0)
> GET /images HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/ 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

Pete Zaitcev (zaitcev) wrote :

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

Jay Pipes (jaypipes) wrote :

Hmm, weird...

Changed in glance:
status: New → Confirmed
importance: Undecided → Low
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) on 2012-01-19
Changed in glance:
status: Confirmed → In Progress
Jay Pipes (jaypipes) on 2012-01-19
Changed in glance:
milestone: none → essex-3

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) on 2012-01-25
Changed in glance:
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in glance:
milestone: essex-3 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers