← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1156917] Re: Output from collections in v3 is not correct. There are many inconsistencies between xml and json

 

This is by design; is there a specific aspect of the XML you'd like to
see changed?

** Changed in: keystone
       Status: New => Won't Fix

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

Title:
  Output from collections in v3  is not correct. There are many
  inconsistencies between xml  and json

Status in OpenStack Identity (Keystone):
  Won't Fix

Bug description:
  GET /projects  with  Accept = application/json

  1)  Link element follows the syntax descibed in the document.
  2) Link element is outside of projects array

  
  GET /projects  with  Accept = application/xml

  1)  Link element follows the  atom link syntax
  2) Link element is inside  projects array. (ie)  Projects array contains link and collection or project


  I have given below output from v3 GET /projects

  {
      "links": {
          "next": null, 
          "previous": null, 
          "self": "http://localhost:5000/v3/projects";
      }, 
      "projects": [
          {
              "description": "Default Tenant", 
              "domain_id": "default", 
              "enabled": true, 
              "id": "b6f84a0d7ce144b7ae9abdc17ccf938e", 
              "links": {
                  "self": "http://localhost:5000/v3/projects/b6f84a0d7ce144b7ae9abdc17ccf938e";
              }, 
              "name": "demo"
          }, 
          {
              "description": "Service Tenant", 
              "domain_id": "default", 
              "enabled": true, 
              "id": "9e120a281df94753b8bc2baafa576a17", 
              "links": {
                  "self": "http://localhost:5000/v3/projects/9e120a281df94753b8bc2baafa576a17";
              }, 
              "name": "service"
          }, 
  .........

  
  <?xml version="1.0" encoding="UTF-8"?>
  <projects xmlns="http://docs.openstack.org/identity/api/v2.0";>
    <project name="demo" enabled="true" id="b6f84a0d7ce144b7ae9abdc17ccf938e" domain_id="default">
      <links>
        <link rel="self" href="http://localhost:5000/v3/projects/b6f84a0d7ce144b7ae9abdc17ccf938e"/>
      </links>
      <description>Default Tenant</description>
    </project>
    <project name="service" enabled="true" id="9e120a281df94753b8bc2baafa576a17" domain_id="default">
      <links>
        <link rel="self" href="http://localhost:5000/v3/projects/9e120a281df94753b8bc2baafa576a17"/>
      </links>
      <description>Service Tenant</description>
    </project>
  ......
   <links>
      <link rel="self" href="http://localhost:5000/v3/projects"/>
    </links>
  </projects>

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