← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1381961] [NEW] Keystone API GET 5000/v3 returns wrong endpoint URL in response body

 

Public bug reported:

When I was invoking a GET request to  public endpoint of Keystone, I found the admin endpoint URL in response body, I assume it should be the public endpoint URL:
GET https://192.168.101.10:5000/v3

{
  "version": {
    "status": "stable",
    "updated": "2013-03-06T00:00:00Z",
    "media-types": [
      {
        "base": "application/json",
        "type": "application/vnd.openstack.identity-v3+json"
      },
      {
        "base": "application/xml",
        "type": "application/vnd.openstack.identity-v3+xml"
      }
    ],
    "id": "v3.0",
    "links": [
      {
        "href": "https://172.20.14.10:35357/v3/";,
        "rel": "self"
      }
    ]
  }
}

===============================================================
Btw, I can get the right URL for public endpoint in the response body of the versionless API call:
GET https://192.168.101.10:5000

{
  "versions": {
    "values": [
      {
        "status": "stable",
        "updated": "2013-03-06T00:00:00Z",
        "media-types": [
          {
            "base": "application/json",
            "type": "application/vnd.openstack.identity-v3+json"
          },
          {
            "base": "application/xml",
            "type": "application/vnd.openstack.identity-v3+xml"
          }
        ],
        "id": "v3.0",
        "links": [
          {
            "href": "https://192.168.101.10:5000/v3/";,
            "rel": "self"
          }
        ]
      },
      {
        "status": "stable",
        "updated": "2014-04-17T00:00:00Z",
        "media-types": [
          {
            "base": "application/json",
            "type": "application/vnd.openstack.identity-v2.0+json"
          },
          {
            "base": "application/xml",
            "type": "application/vnd.openstack.identity-v2.0+xml"
          }
        ],
        "id": "v2.0",
        "links": [
          {
            "href": "https://192.168.101.10:5000/v2.0/";,
            "rel": "self"
          },
          {
            "href": "http://docs.openstack.org/api/openstack-identity-service/2.0/content/";,
            "type": "text/html",
            "rel": "describedby"
          },
          {
            "href": "http://docs.openstack.org/api/openstack-identity-service/2.0/identity-dev-guide-2.0.pdf";,
            "type": "application/pdf",
            "rel": "describedby"
          }
        ]
      }
    ]
  }
}

** Affects: keystone
     Importance: Undecided
         Status: New

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

Title:
  Keystone API GET 5000/v3 returns wrong endpoint URL in response body

Status in OpenStack Identity (Keystone):
  New

Bug description:
  When I was invoking a GET request to  public endpoint of Keystone, I found the admin endpoint URL in response body, I assume it should be the public endpoint URL:
  GET https://192.168.101.10:5000/v3

  {
    "version": {
      "status": "stable",
      "updated": "2013-03-06T00:00:00Z",
      "media-types": [
        {
          "base": "application/json",
          "type": "application/vnd.openstack.identity-v3+json"
        },
        {
          "base": "application/xml",
          "type": "application/vnd.openstack.identity-v3+xml"
        }
      ],
      "id": "v3.0",
      "links": [
        {
          "href": "https://172.20.14.10:35357/v3/";,
          "rel": "self"
        }
      ]
    }
  }

  ===============================================================
  Btw, I can get the right URL for public endpoint in the response body of the versionless API call:
  GET https://192.168.101.10:5000

  {
    "versions": {
      "values": [
        {
          "status": "stable",
          "updated": "2013-03-06T00:00:00Z",
          "media-types": [
            {
              "base": "application/json",
              "type": "application/vnd.openstack.identity-v3+json"
            },
            {
              "base": "application/xml",
              "type": "application/vnd.openstack.identity-v3+xml"
            }
          ],
          "id": "v3.0",
          "links": [
            {
              "href": "https://192.168.101.10:5000/v3/";,
              "rel": "self"
            }
          ]
        },
        {
          "status": "stable",
          "updated": "2014-04-17T00:00:00Z",
          "media-types": [
            {
              "base": "application/json",
              "type": "application/vnd.openstack.identity-v2.0+json"
            },
            {
              "base": "application/xml",
              "type": "application/vnd.openstack.identity-v2.0+xml"
            }
          ],
          "id": "v2.0",
          "links": [
            {
              "href": "https://192.168.101.10:5000/v2.0/";,
              "rel": "self"
            },
            {
              "href": "http://docs.openstack.org/api/openstack-identity-service/2.0/content/";,
              "type": "text/html",
              "rel": "describedby"
            },
            {
              "href": "http://docs.openstack.org/api/openstack-identity-service/2.0/identity-dev-guide-2.0.pdf";,
              "type": "application/pdf",
              "rel": "describedby"
            }
          ]
        }
      ]
    }
  }

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


Follow ups

References