]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: return ERR_NO_SUCH_BUCKET early while evaluating bucket policy
authorAbhishek Lekshmanan <abhishek@suse.com>
Thu, 21 Feb 2019 16:06:52 +0000 (17:06 +0100)
committerAbhishek Lekshmanan <abhishek@suse.com>
Thu, 21 Feb 2019 16:06:52 +0000 (17:06 +0100)
commitcf66a6d5a7eee294313a1a08d0524daf939747e5
tree5db7b6ce21d63c82d6435fa7fff4cead539b8f1b
parent729104e5f2e7159edbce37ce89fc83c3726a7f56
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>
src/rgw/rgw_op.cc