manila/manila/api/v1
Tom Barron 2f2ed258f7 Enforce policy checks getting share-type by name
Policy checks are skipped when looking up a share-type
by name.  This causes share creation attempts that specify
a valid share-type to pass the early API check on share type
even if the share type named is private and not shared with
the user's project.  The share creation fails later, but after
the database record for the share is created.  Although the
operation fails with an ERROR, the share is stuck in CREATING
state.

Fix this issue by checking the user's project in the database
API just as we do for share type lookups by uuid.

Closes-bug: #1885956
Change-Id: If5fe32c155fe0861b3ed86b862335e062796056b
(cherry picked from commit f877deed51)
(cherry picked from commit e02cc6d6bc)
2020-07-16 15:51:06 +00:00
..
__init__.py Renamed cinder to manila. 2013-09-02 09:59:07 +03:00
limits.py Add possibility to run 'manila-api' with wsgi web servers 2017-04-10 12:49:20 +03:00
router.py [Trivialfix] Remove the useless parameter 'ext_mgr' 2018-06-09 22:39:24 +00:00
scheduler_stats.py [pylint] Fix/ignore pylint errors in non-test modules 2019-02-25 17:23:15 +00:00
security_service.py Add share network with multiple subnets 2019-09-13 11:27:18 -03:00
share_manage.py Add manage/unmanage of shares in DHSS=True 2019-03-05 16:03:29 -03:00
share_metadata.py Support metadata for access rule resource 2018-07-20 23:31:48 +08:00
share_servers.py Add share network with multiple subnets 2019-09-13 11:27:18 -03:00
share_snapshots.py use http code constant instead of int 2018-03-20 09:26:59 +00:00
share_types_extra_specs.py [pylint] Fix/ignore pylint errors in non-test modules 2019-02-25 17:23:15 +00:00
share_unmanage.py Add manage/unmanage of shares in DHSS=True 2019-03-05 16:03:29 -03:00
shares.py Enforce policy checks getting share-type by name 2020-07-16 15:51:06 +00:00