From: Daniel Gryniewicz Date: Wed, 16 Feb 2022 17:19:25 +0000 (-0500) Subject: RGW - Zipper - Make sure PostObj has bucket set X-Git-Tag: v16.2.8~122^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9ba4798bee8063de3c465ed8680e24cba1283deb;p=ceph.git RGW - Zipper - Make sure PostObj has bucket set 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 --- diff --git a/src/rgw/rgw_op.cc b/src/rgw/rgw_op.cc index 02ae8a93fd04..145e57e01612 100644 --- a/src/rgw/rgw_op.cc +++ b/src/rgw/rgw_op.cc @@ -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,