← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1397318] [NEW] Wront return code for inherited role checking

 

Public bug reported:

As per https://github.com/openstack/keystone-specs/blob/master/api/v3
/identity-api-v3-os-inherit-ext.rst#check-if-user-has-an-inherited-
project-role-on-domain, HEAD /OS-
INHERIT/domains/{domain_id}/users/{user_id}/roles/{role_id}/inherited_to_projects
returns "204 No Content", but the correct return is "200":

curl --verbose -X HEAD -H "X-Auth-Token:$TOKEN" "http://localhost:5000/v3/OS-INHERIT/domains/default/users/dd55a1c1c05842c29b50ef8ecce681a7/roles/inherited_to_projects";
* Hostname was NOT found in DNS cache
*   Trying 127.0.1.1...
* Connected to localhost (127.0.1.1) port 5000 (#0)
> HEAD /v3/OS-INHERIT/domains/default/users/dd55a1c1c05842c29b50ef8ecce681a7/roles/inherited_to_projects HTTP/1.1
> User-Agent: curl/7.35.0
> Host: localhost:5000
> Accept: */*
> X-Auth-Token:9c87d13fa15d41549f634bd06f4551b4
> 
< HTTP/1.1 200 OK
< Date: Fri, 28 Nov 2014 12:59:10 GMT
* Server Apache/2.4.7 (Ubuntu) is not blacklisted
< Server: Apache/2.4.7 (Ubuntu)
< Vary: X-Auth-Token
< Content-Length: 334
< Content-Type: application/json

** Affects: keystone
     Importance: Undecided
     Assignee: Rodrigo Duarte (rodrigodsousa)
         Status: In Progress


** Tags: documentation low-hanging-fruit

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

Title:
  Wront return code for inherited role checking

Status in OpenStack Identity (Keystone):
  In Progress

Bug description:
  As per https://github.com/openstack/keystone-specs/blob/master/api/v3
  /identity-api-v3-os-inherit-ext.rst#check-if-user-has-an-inherited-
  project-role-on-domain, HEAD /OS-
  INHERIT/domains/{domain_id}/users/{user_id}/roles/{role_id}/inherited_to_projects
  returns "204 No Content", but the correct return is "200":

  curl --verbose -X HEAD -H "X-Auth-Token:$TOKEN" "http://localhost:5000/v3/OS-INHERIT/domains/default/users/dd55a1c1c05842c29b50ef8ecce681a7/roles/inherited_to_projects";
  * Hostname was NOT found in DNS cache
  *   Trying 127.0.1.1...
  * Connected to localhost (127.0.1.1) port 5000 (#0)
  > HEAD /v3/OS-INHERIT/domains/default/users/dd55a1c1c05842c29b50ef8ecce681a7/roles/inherited_to_projects HTTP/1.1
  > User-Agent: curl/7.35.0
  > Host: localhost:5000
  > Accept: */*
  > X-Auth-Token:9c87d13fa15d41549f634bd06f4551b4
  > 
  < HTTP/1.1 200 OK
  < Date: Fri, 28 Nov 2014 12:59:10 GMT
  * Server Apache/2.4.7 (Ubuntu) is not blacklisted
  < Server: Apache/2.4.7 (Ubuntu)
  < Vary: X-Auth-Token
  < Content-Length: 334
  < Content-Type: application/json

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


Follow ups

References