← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1069073] Re: Content-Type is not right with request header "accept:application/xml"

 

** Changed in: keystone
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1069073

Title:
  Content-Type is not right  with request header
  "accept:application/xml"

Status in OpenStack Identity (Keystone):
  Fix Released

Bug description:
  when the request with the header "accept:application/xml".  the
  response should use xml body and with  "Content-Type: application/xml"
  in the response header. actually it with "Content-Type:
  application/json" header  in the response header.

  for example:

  curl localhost:5000/v2.0/ -v -H "accept:application/xml"
  * About to connect() to localhost port 5000 (#0)
  *   Trying 127.0.0.1... connected
  * Connected to localhost (127.0.0.1) port 5000 (#0)
  > GET /v2.0/ HTTP/1.1
  > User-Agent: curl/7.21.3 (i686-pc-linux-gnu) libcurl/7.21.3 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.18
  > Host: localhost:5000
  > accept:application/xml
  > 
  < HTTP/1.1 200 OK
  < Vary: X-Auth-Token
  < Content-Type: application/json
  < Content-Length: 710
  < Date: Sat, 20 Oct 2012 12:57:17 GMT
  < 
  <?xml version="1.0" encoding="UTF-8"?>
  <version xmlns="http://docs.openstack.org/identity/api/v2.0"; status="beta" updated="2011-11-19T00:00:00Z" id="v2.0">
    <media-types>
      <media-type base="application/json" type="application/vnd.openstack.identity-v2.0+json"/>
      <media-type base="application/xml" type="application/vnd.openstack.identity-v2.0+xml"/>
    </media-types>
    <link href="http://localhost:5000/v2.0/"; rel="self"/>
    <link href="http://docs.openstack.org/api/openstack-identity-service/2.0/content/"; type="text/html" rel="describedby"/>
    <link href="http://docs.openstack.org/api/openstack-identity-service/2.0/identity-dev-guide-2.0.pdf"; type="application/pdf" rel="describedby"/>
  </version>

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1069073/+subscriptions