]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
RGW - Zipper - Make sure PostObj has bucket set 45060/head
authorDaniel Gryniewicz <dang@redhat.com>
Wed, 16 Feb 2022 17:19:25 +0000 (12:19 -0500)
committerDaniel Gryniewicz <dang@redhat.com>
Thu, 17 Feb 2022 15:34:41 +0000 (10:34 -0500)
s->object needs to have it's bucket set.  Make sure this is the case for
PostObj.

This is a Pacific fix only, because Master (and therefore Quincy) was
fixed as part of extensive Zipper changes that cannot be backported.

Fixes: https://tracker.ceph.com/issues/51574
Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
src/rgw/rgw_op.cc

index 02ae8a93fd046c074b789ddd7c10440e66ac9470..145e57e01612f973423fb4349013ec82fb0a65ce 100644 (file)
@@ -4138,6 +4138,8 @@ void RGWPostObj::execute(optional_yield y)
     return;
   }
 
+  s->object->set_bucket(s->bucket.get());
+
   if (s->iam_policy || ! s->iam_user_policies.empty() || !s->session_policies.empty()) {
     auto identity_policy_res = eval_identity_or_session_policies(s->iam_user_policies, s->env,
                                             boost::none,