glance/glance/api/v2
Dan Smith ba37ea3227 Check get_image(s) in the API
This includes a change to catch Forbidden and convert to NotFound.
The previous Forbidden handler was not only correct (it shoud hide
the permissions error with "not found") but it was actually dead code,
since the DB was performing its own checks and would never raise
Forbidden.

This also includes a change of the default policy for get_images
to include the other states, like get_image does. I think this was
just an oversight in the original RBAC patches, which didn't matter
because they weren't really being honored strictly.

Partially implements: blueprint policy-refactor

Change-Id: I70100cd7f01da803e9740cea1f7ce7ae18ad6919
2021-08-04 07:56:05 -07:00
..
model Merge "Add operators to provide multivalue support" 2015-03-11 06:57:54 +00:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
cached_images.py Add cache-manage utility using v2 API 2019-02-27 06:43:13 +00:00
discovery.py Rethinking filesystem access 2019-10-01 09:53:48 +00:00
image_actions.py Extracted HTTP response codes to constants 2016-10-06 15:15:20 +00:00
image_data.py Add image_count_uploading quota enforcement 2021-07-02 08:29:07 -07:00
image_members.py Fix member create to handle unicode characters 2017-12-26 19:42:05 +00:00
image_tags.py Extracted HTTP response codes to constants 2016-10-06 15:15:20 +00:00
images.py Check get_image(s) in the API 2021-08-04 07:56:05 -07:00
metadef_namespaces.py Fix 500 if user passes name with more than 80 characters 2017-10-05 10:24:22 +05:30
metadef_objects.py Merge "Properly validate metadef objects" 2017-12-01 08:11:00 +00:00
metadef_properties.py Properly validate metadef objects 2017-01-18 18:37:50 +00:00
metadef_resource_types.py Raise hacking to latest 2.0.0 release 2020-03-27 14:11:08 -05:00
metadef_tags.py Fix 500 if user passes name with more than 80 characters 2017-10-05 10:24:22 +05:30
policy.py Check get_image(s) in the API 2021-08-04 07:56:05 -07:00
router.py New API /v2/images/{id}/tasks 2021-02-24 05:19:43 +00:00
schemas.py Don't use slashes for long lines - use parentheses instead 2015-08-16 07:21:13 +00:00
tasks.py Utilize newly added tasks database fields 2021-02-24 05:17:43 +00:00