]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: RGWBucket::link clears acl buffer before re-encoding
authorCasey Bodley <cbodley@redhat.com>
Wed, 31 Jul 2019 17:03:03 +0000 (13:03 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 31 Jul 2019 17:03:03 +0000 (13:03 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_bucket.cc

index 6e31cb49e4b34aef677d273e4f4e6a25cb478559..d205043ddfeb91b58379eb4fe52e5b1b1757d89d 100644 (file)
@@ -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,