]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: check for non-existent bucket in RGWGetACLs 26530/head
authorMatt Benjamin <mbenjamin@redhat.com>
Wed, 30 Jan 2019 19:09:47 +0000 (14:09 -0500)
committerPrashant D <pdhange@redhat.com>
Tue, 19 Feb 2019 22:44:03 +0000 (17:44 -0500)
commit0e13995458060c0fc0ac30457b10b8ca94a3d5e6
treee7d5139f8a497ae757bc3f0d90ff48b581da56fc
parenta2f258ef72d738c8185926b5d5776f71a92de088
rgw: check for non-existent bucket in RGWGetACLs

Fix incorrect result when attempting to fetch an ACL for a
bucket that does not exist.

This change leads to a NoSuchBucket error result when an ACL is
requested from a non-existent bucket.  A NoSuchKey error result
iss already seen when the target was an object.

Fixes: https://tracker.ceph.com/issues/38116
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 078981ca4ef1610ab89b60f4c281f521d6838a37)

Conflicts:
src/rgw/rgw_op.cc : Resolved in verify_permission
src/rgw/rgw_op.cc