Do not allow to modify access for public share type
Now public share type can be removed project access, but when
listing access, manila returns 'Access list not available for public
share types'. It's weird for users experience.
We should check if a type is public and do not allow public share type
to modify project access.
APIImpact
When modifying access for public share type, API will return 409 and message:
"Invalid share type: Type access modification is not applicable to public
share type."
Reviewed: https:/ /review. openstack. org/219213 /git.openstack. org/cgit/ openstack/ manila/ commit/ ?id=f041606cb4f 5def4837387812c 6b4f379c857255
Committed: https:/
Submitter: Jenkins
Branch: master
commit f041606cb4f5def 4837387812c6b4f 379c857255
Author: zhongjun <email address hidden>
Date: Tue Sep 1 18:10:06 2015 +0800
Do not allow to modify access for public share type
Now public share type can be removed project access, but when
listing access, manila returns 'Access list not available for public
share types'. It's weird for users experience.
We should check if a type is public and do not allow public share type
to modify project access.
APIImpact
When modifying access for public share type, API will return 409 and message:
"Invalid share type: Type access modification is not applicable to public
share type."
Change-Id: I94f580eeb7eef4 263c631227cc371 0eeae2b9706
Closes-Bug: #1490912