From: Casey Bodley Date: Wed, 31 Jul 2019 17:03:03 +0000 (-0400) Subject: rgw: RGWBucket::link clears acl buffer before re-encoding X-Git-Tag: v15.1.0~1898^2^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=dd0e60d89f795ab02e07221954c39684d0b3c12e;p=ceph-ci.git rgw: RGWBucket::link clears acl buffer before re-encoding Signed-off-by: Casey Bodley --- diff --git a/src/rgw/rgw_bucket.cc b/src/rgw/rgw_bucket.cc index 6e31cb49e4b..d205043ddfe 100644 --- a/src/rgw/rgw_bucket.cc +++ b/src/rgw/rgw_bucket.cc @@ -678,6 +678,7 @@ int RGWBucket::link(RGWBucketAdminOpState& op_state, optional_yield y, std::stri bucket_info.owner = user_info.user_id; // ...and encode the acl + attrs[RGW_ATTR_ACL].clear(); policy.encode(attrs[RGW_ATTR_ACL]); r = bucket_ctl->store_bucket_instance_info(bucket, bucket_info, y,