]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: the swift container acl should support field .ref 12874/head
authorJing Wenjun <jingwenjun@cmss.chinamobile.com>
Tue, 10 Jan 2017 21:28:43 +0000 (05:28 +0800)
committerJing Wenjun <jingwenjun@cmss.chinamobile.com>
Mon, 16 Jan 2017 15:27:27 +0000 (23:27 +0800)
On the openstack-swift. The container acl supports .ref, which is ignored on ceph swift.

Fixes: http://tracker.ceph.com/issues/18484
Signed-off-by: Jing Wenjun <jingwenjun@cmss.chinamobile.com>
src/rgw/rgw_acl_swift.cc

index 71121a45a057ac43dcab262f25610efb0dac8985..3469dfafb424eec0c3cfb0e1d0696fd026f40c59 100644 (file)
@@ -59,6 +59,7 @@ static bool uid_is_public(const string& uid)
     return false;
 
   return sub.compare(".r") == 0 ||
+         sub.compare(".ref") == 0 ||
          sub.compare(".referer") == 0 ||
          sub.compare(".referrer") == 0;
 }
@@ -75,6 +76,7 @@ static bool extract_referer_urlspec(const std::string& uid,
   url_spec = uid.substr(pos + 1);
 
   return sub.compare(".r") == 0 ||
+         sub.compare(".ref") == 0 ||
          sub.compare(".referer") == 0 ||
          sub.compare(".referrer") == 0;
 }