Implied Roles responses lack 'links' pointing back to the API call that generated them

Bug #1564129 reported by Sean Perry
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Medium
Colleen Murphy

Bug Description

For instance:

 http https://poc.example.com:35357/v3/role_inferences/ "X-Auth-Token:d6b832b25b5f4eafa53ebd8399d41b82"
HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Length: 371
Content-Type: application/json
Date: Wed, 30 Mar 2016 22:22:47 GMT
Keep-Alive: timeout=5, max=100
Server: Apache/2.4.7 (Ubuntu)
Vary: X-Auth-Token
x-openstack-request-id: req-7632b6fb-1ca2-4cf3-a9c4-b2d74627e282

{
    "role_inferences": [
        {
            "implies": [
                {
                    "id": "edd42085d3ab472e9cf13b3cf3c362b6",
                    "links": {
                        "self": "https://poc.example.com:35357/v3/roles/edd42085d3ab472e9cf13b3cf3c362b6"
                    },
                    "name": "Member"
                }
            ],
            "prior_role": {
                "id": "5a912666c3704c22a20d4c35f3068a88",
                "links": {
                    "self": "https://poc.example.com:35357/v3/roles/5a912666c3704c22a20d4c35f3068a88"
                },
                "name": "testing"
            }
        }
    ]
}

While there are 'links' on the individual roles there is not one on the response as a whole. This is the case with all of the Implied Roles responses.

Revision history for this message
Brant Knudson (blk-u) wrote :
Changed in keystone:
assignee: nobody → Colleen Murphy (krinkle)
status: New → In Progress
description: updated
Changed in keystone:
assignee: Colleen Murphy (krinkle) → Samuel de Medeiros Queiroz (samueldmq)
Changed in keystone:
milestone: none → newton-1
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/300195
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=248f0278f9420fe19238fc5a45eedb2f81d6bfae
Submitter: Jenkins
Branch: master

commit 248f0278f9420fe19238fc5a45eedb2f81d6bfae
Author: Colleen Murphy <email address hidden>
Date: Thu Mar 31 13:22:17 2016 -0700

    Add 'links' to implied roles response

    The API spec claims that a GET request for implied roles will provide a
    link back to itself in the response[1]. This patch makes it actually do
    that.

    [1] http://specs.openstack.org/openstack/keystone-specs/api/v3/identity-api-v3.html#list-implied-roles-for-role

    Closes-bug: #1564129

    Change-Id: I43571cc8d759922a4d9107cadba590cf14d25b20

Changed in keystone:
status: In Progress → Fix Released
Changed in keystone:
assignee: Samuel de Medeiros Queiroz (samueldmq) → Colleen Murphy (krinkle)
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/keystone 10.0.0.0b2

This issue was fixed in the openstack/keystone 10.0.0.0b2 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.