← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1156594] Re: deserializing xml results in bad links

 

** 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/1156594

Title:
  deserializing xml results in bad links

Status in OpenStack Identity (Keystone):
  Fix Released

Bug description:
  Deserializing the following XML, which represents a single resource:

              <?xml version="1.0" encoding="UTF-8"?>
              <object xmlns="http://docs.openstack.org/identity/api/v2.0";
                  attribute="value">
                      <links>
                          <link rel="self"
                              href="http://localhost:5000/v3/objects/abc123def"/>
                          <link rel="anotherobj"
                              href="http://localhost:5000/v3/anotherobjs/123"/>
                      </links>
              </object>

  Results in JSON with collection-style links attached at the root level
  (including irrelevant "next" and "previous" links):

  {
    'object': {
      'attribute': 'value'
    },
    'links': {
      'self': 'http://localhost:5000/v3/objects/abc123def',
      'next': None,
      'anotherobj': 'http://localhost:5000/v3/anotherobjs/123',
      'previous': None
    }
  }

  Instead of the links appearing on the object itself:

  {
    'object': {
      'attribute': 'value',
      'links': {
        'self': 'http://localhost:5000/v3/objects/abc123def',
        'anotherobj': 'http://localhost:5000/v3/anotherobjs/123'
      }
    }
  }

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