keystone list project api returns empty if "?name=" is added as url parameter
Bug #1681348 reported by
Xiaoliang Li
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
request: https://{{keystone_
expect: returns all projects of current user.
but: return empty.
Other OpenStack components obey this convention properly, so keystone is inconsistent with them.
To post a comment you must log in.
Hi Xiaoliang,
By all other OpenStack components do you mean, for example, listing volumes in cinder? In that case doing /v3/<project_ id>/volumes will return all the volumes that you have access to within the project your token is scoped to. In cinder too, doing "?name=" will give you an empty list, since it will be querying for a volume named exactly "" (empty).
The /v3/projects API is for admins only. So when it is performed by an admin it will return all the projects in keystone regardless of user. When you use the "?name=" filter, it will query for a project **matching** exactly the name "" (empty) and failing to find one will correctly return an empty list.
If you are looking to get all projects of the current user you should use /v3/auth/projects.