]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: don't preserve acls when copying object
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 13 Aug 2015 17:59:32 +0000 (10:59 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 22 Sep 2015 20:03:36 +0000 (13:03 -0700)
Fixes: #12370
When copying an object we need to use the acls we calculated earlier,
and not the source acls.
This was broken at e41d97c8e38bb60d7e09e9801c0179efe7af1734.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit fb020247449d3daf033885bab5b3a10c0e5df4a5)

src/rgw/rgw_rados.cc

index f4994f5e7bde00d4a2ec6ff872e795b7a7ae8039..dfe4ad0b52e60314d2e1f4cc3a6480c202af2d70 100644 (file)
@@ -4007,6 +4007,8 @@ int RGWRados::copy_obj(RGWObjectCtx& obj_ctx,
     return ret;
   }
 
+  src_attrs[RGW_ATTR_ACL] = attrs[RGW_ATTR_ACL];
+
   set_copy_attrs(src_attrs, attrs, attrs_mod);
   attrs.erase(RGW_ATTR_ID_TAG);