]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: RGWCopyObj loads src_bucket in init_processing()
authorCasey Bodley <cbodley@redhat.com>
Thu, 23 Mar 2023 19:02:51 +0000 (15:02 -0400)
committerCasey Bodley <cbodley@redhat.com>
Tue, 11 Apr 2023 13:12:00 +0000 (09:12 -0400)
commitd59f453e100ff45ff013345551085ee17345383d
treeb5345e46466ac503fbefcef5132a149c23fa6b7e
parentee362603e3038ed852d8fc1e2e529431855c9b43
rgw: RGWCopyObj loads src_bucket in init_processing()

if `RGWCopyObj::verify_permissions()` returns an error, it may leave
some zipper objects uninitialized. when the user has admin or system
privileges, we'll ignore that error and call `execute()` anyway. this
moves the initialization into `RGWCopyObj::init_processing()` instead

Fixes: https://tracker.ceph.com/issues/58035
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 9e1d2b140fe9550370fdc6e15329005ecc5b4d9d)
src/rgw/rgw_op.cc
src/rgw/rgw_op.h