yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #40279
[Bug 1506653] [NEW] Retrieving either a project's parents or subtree as_list does not work
Public bug reported:
To reproduce this I created five projects ("1", "2", "3", "4", "5") -
with "1" as the top level project, and each subsequent project as a
child of the previous. All four of the following calls were performed
against project "3".
parents_as_list (NON-working) :
$ curl -i -H"X-Auth-Token:$TOKEN" -H "Content-type: application/json" http://community:35357/v3/projects/b4a6fb7dcc504373a2e1301ab357d248?parents_as_list
{
"project": {
"name": "3",
"is_domain": false,
"description": "",
"links": {
"self": "http://community:35357/v3/projects/b4a6fb7dcc504373a2e1301ab357d248"
},
"enabled": true,
"id": "b4a6fb7dcc504373a2e1301ab357d248",
"parent_id": "0b09fce9246f42dda11125d4d32aa013",
"parents": [],
"domain_id": "default"
}
}
parents_as_ids (working) :
$ curl -i -H"X-Auth-Token:$TOKEN" -H "Content-type: application/json" http://community:35357/v3/projects/b4a6fb7dcc504373a2e1301ab357d248?parents_as_ids
{
"project": {
"name": "3",
"is_domain": false,
"description": "",
"links": {
"self": "http://community:35357/v3/projects/b4a6fb7dcc504373a2e1301ab357d248"
},
"enabled": true,
"id": "b4a6fb7dcc504373a2e1301ab357d248",
"parent_id": "0b09fce9246f42dda11125d4d32aa013",
"parents": {
"0b09fce9246f42dda11125d4d32aa013": {
"7092bca4a8d444619bcee53a47585876": null
}
},
"domain_id": "default"
}
}
subtree_as_list (NON-working) :
$ curl -i -H"X-Auth-Token:$TOKEN" -H "Content-type: application/json" http://community:35357/v3/projects/b4a6fb7dcc504373a2e1301ab357d248?subtree_as_list
{
"project": {
"name": "3",
"is_domain": false,
"description": "",
"links": {
"self": "http://community:35357/v3/projects/b4a6fb7dcc504373a2e1301ab357d248"
},
"enabled": true,
"subtree": [],
"id": "b4a6fb7dcc504373a2e1301ab357d248",
"parent_id": "0b09fce9246f42dda11125d4d32aa013",
"domain_id": "default"
}
}
subtree_as_ids (working) :
$ curl -i -H"X-Auth-Token:$TOKEN" -H "Content-type: application/json" http://community:35357/v3/projects/b4a6fb7dcc504373a2e1301ab357d248?subtree_as_ids
{
"project": {
"name": "3",
"is_domain": false,
"description": "",
"links": {
"self": "http://community:35357/v3/projects/b4a6fb7dcc504373a2e1301ab357d248"
},
"enabled": true,
"subtree": {
"421143ab145e4b278d1b971d6509dd23": {
"1484a4e8493d4f3eb6a81bef582f455a": null
}
},
"id": "b4a6fb7dcc504373a2e1301ab357d248",
"parent_id": "0b09fce9246f42dda11125d4d32aa013",
"domain_id": "default"
}
}
** 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/1506653
Title:
Retrieving either a project's parents or subtree as_list does not work
Status in Keystone:
New
Bug description:
To reproduce this I created five projects ("1", "2", "3", "4", "5") -
with "1" as the top level project, and each subsequent project as a
child of the previous. All four of the following calls were performed
against project "3".
parents_as_list (NON-working) :
$ curl -i -H"X-Auth-Token:$TOKEN" -H "Content-type: application/json" http://community:35357/v3/projects/b4a6fb7dcc504373a2e1301ab357d248?parents_as_list
{
"project": {
"name": "3",
"is_domain": false,
"description": "",
"links": {
"self": "http://community:35357/v3/projects/b4a6fb7dcc504373a2e1301ab357d248"
},
"enabled": true,
"id": "b4a6fb7dcc504373a2e1301ab357d248",
"parent_id": "0b09fce9246f42dda11125d4d32aa013",
"parents": [],
"domain_id": "default"
}
}
parents_as_ids (working) :
$ curl -i -H"X-Auth-Token:$TOKEN" -H "Content-type: application/json" http://community:35357/v3/projects/b4a6fb7dcc504373a2e1301ab357d248?parents_as_ids
{
"project": {
"name": "3",
"is_domain": false,
"description": "",
"links": {
"self": "http://community:35357/v3/projects/b4a6fb7dcc504373a2e1301ab357d248"
},
"enabled": true,
"id": "b4a6fb7dcc504373a2e1301ab357d248",
"parent_id": "0b09fce9246f42dda11125d4d32aa013",
"parents": {
"0b09fce9246f42dda11125d4d32aa013": {
"7092bca4a8d444619bcee53a47585876": null
}
},
"domain_id": "default"
}
}
subtree_as_list (NON-working) :
$ curl -i -H"X-Auth-Token:$TOKEN" -H "Content-type: application/json" http://community:35357/v3/projects/b4a6fb7dcc504373a2e1301ab357d248?subtree_as_list
{
"project": {
"name": "3",
"is_domain": false,
"description": "",
"links": {
"self": "http://community:35357/v3/projects/b4a6fb7dcc504373a2e1301ab357d248"
},
"enabled": true,
"subtree": [],
"id": "b4a6fb7dcc504373a2e1301ab357d248",
"parent_id": "0b09fce9246f42dda11125d4d32aa013",
"domain_id": "default"
}
}
subtree_as_ids (working) :
$ curl -i -H"X-Auth-Token:$TOKEN" -H "Content-type: application/json" http://community:35357/v3/projects/b4a6fb7dcc504373a2e1301ab357d248?subtree_as_ids
{
"project": {
"name": "3",
"is_domain": false,
"description": "",
"links": {
"self": "http://community:35357/v3/projects/b4a6fb7dcc504373a2e1301ab357d248"
},
"enabled": true,
"subtree": {
"421143ab145e4b278d1b971d6509dd23": {
"1484a4e8493d4f3eb6a81bef582f455a": null
}
},
"id": "b4a6fb7dcc504373a2e1301ab357d248",
"parent_id": "0b09fce9246f42dda11125d4d32aa013",
"domain_id": "default"
}
}
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1506653/+subscriptions
Follow ups