Comment 2 for bug 1490912

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to manila (master)

Reviewed: https://review.openstack.org/219213
Committed: https://git.openstack.org/cgit/openstack/manila/commit/?id=f041606cb4f5def4837387812c6b4f379c857255
Submitter: Jenkins
Branch: master

commit f041606cb4f5def4837387812c6b4f379c857255
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: I94f580eeb7eef4263c631227cc3710eeae2b9706
    Closes-Bug: #1490912