Skip to content

Commit

Permalink
rgw: the swift container acl should support field .ref
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jing-Scott committed Jan 16, 2017
1 parent 3c0561c commit b06f9cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rgw/rgw_acl_swift.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit b06f9cd

Please sign in to comment.