From: Yehuda Sadeh Date: Tue, 21 Jan 2020 20:59:19 +0000 (-0800) Subject: rgw: fetch_remote_obj() create default acls if not found X-Git-Tag: v15.1.0~22^2~15 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6a4e529b5586cd02798cec4c86c1b856db8fb8c2;p=ceph.git rgw: fetch_remote_obj() create default acls if not found Create default acls if the original object did not have acl header. Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 7b06d66a9a48..f389ec5e2eae 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -3829,7 +3829,8 @@ int RGWRados::fetch_remote_obj(RGWObjectCtx& obj_ctx, auto aiter = obj_attrs.find(RGW_ATTR_ACL); if (aiter == obj_attrs.end()) { - ldout(cct, 0) << "WARNING: " << __func__ << "(): object doesn't have ACL attribute" << dendl; + ldout(cct, 0) << "WARNING: " << __func__ << "(): object doesn't have ACL attribute, setting default ACLs" << dendl; + acl.create_default(owner_info.user_id, owner_info.display_name); } else { auto iter = aiter->second.cbegin(); try {