From b06f9cd9f0900db7b0d0fbcaea69cdd0d4b10132 Mon Sep 17 00:00:00 2001 From: Jing Wenjun Date: Wed, 11 Jan 2017 05:28:43 +0800 Subject: [PATCH] rgw: the swift container acl should support field .ref 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 --- src/rgw/rgw_acl_swift.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rgw/rgw_acl_swift.cc b/src/rgw/rgw_acl_swift.cc index 71121a45a05..3469dfafb42 100644 --- a/src/rgw/rgw_acl_swift.cc +++ b/src/rgw/rgw_acl_swift.cc @@ -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; } -- 2.47.3