]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: return ERR_NO_SUCH_BUCKET early while evaluating bucket policy 40668/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Thu, 21 Feb 2019 16:06:52 +0000 (17:06 +0100)
committerNathan Cutler <ncutler@suse.com>
Thu, 8 Apr 2021 11:53:35 +0000 (13:53 +0200)
commit41d98b090d9613569f32c993da2bb847a790a288
treed145d0a4c0886d44e3b0cc8a9427a4cb9a71a37f
parenta3bb71c89d324b13294707f66d71b7b74886e1b6
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