invalid filter option "all_tenants" for non-aministrator user
Bug #1753885 reported by
TommyLike
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Critical
|
Rajat Dhasmana |
Bug Description
Cinderclient will try to query resource by dfferent approaches when query some specific resource by command "cinder show/snapshot-
```
http://{host}/
```
Actually "all_tenant" is only available for administrators, so when non-administrator try to show some resource which doesn't exist, cinder will raise error: "BadRequest: Invalid filters all_tenants are found in query options"
It works fine before introducing generic filtering as cinder will ignore the invalid invalid query options and now it raise BadRequest.
description: | updated |
Changed in cinder: | |
importance: | Undecided → Critical |
Changed in cinder: | |
assignee: | nobody → Rajat Dhasmana (whoami-rajat) |
status: | New → In Progress |
To post a comment you must log in.
Why is this a bug?
If a non-privileged user runs "cinder list --all-tenants", they get back an error. This is better than giving an incomplete list that doesn't include all tenants.
I'm not sure about whether 400 is the correct code (could be 403), but this seems like the right behavior to me.