]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: return ERR_NO_SUCH_BUCKET early while evaluating bucket policy 31212/head 31213/head 31216/head 31217/head 31218/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Thu, 21 Feb 2019 16:06:52 +0000 (17:06 +0100)
committerNathan Cutler <ncutler@suse.com>
Tue, 29 Oct 2019 09:52:33 +0000 (10:52 +0100)
commit0e0d67b5e67373843d236f650b5387f72c13657a
treedc8d7999162d8d2267d72787fbb26021c947bf2f
parenta8a0c086ada153e616100b322f4b1e54258d7e86
rgw: return ERR_NO_SUCH_BUCKET early while evaluating bucket policy

Right now we create a ERR_NO_SUCH_BUCKET ret code but continue further
processing. Since this ret code isn't returned at any stage we end up creating a
bucket instance anyway which shouldn't happen and then succeeding the client
call in cases like put bucket versioning. Return an error code early in these
cases

Fixes: http://tracker.ceph.com/issues/38420
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit cf66a6d5a7eee294313a1a08d0524daf939747e5)
src/rgw/rgw_op.cc