]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Allow swift acls to be deleted. 20471/head
authorMarcus Watts <mwatts@redhat.com>
Wed, 31 Jan 2018 20:46:57 +0000 (15:46 -0500)
committerMarcus Watts <mwatts@redhat.com>
Sun, 18 Feb 2018 06:10:23 +0000 (01:10 -0500)
commit1fc69243bdfadb1a8c68a9fa5491e32287bc33b4
tree17eae53a4293fad3cf30e21e7052fe0b4b6d256e
parent7a2b56c28af95adf28a798bb8fb230a7767d8350
Allow swift acls to be deleted.

The openstack "swift" command deletes acls by submitting an
acl with an empty string.  The existing logic uses c++ strings,
which can't distinguish between an empty string and a non-existant
string.  Additional, the strings are coming from RGWEnv which
supplies C strings not c++.  Using C strings instead makes it
trivial to pass "non-existance" (as a null string).  It also avoids
some type conversion with string copying.

Fixes: http://tracker.ceph.com/issues/22897
Signed-off-by: Marcus Watts <mwatts@redhat.com>
src/rgw/rgw_acl_swift.cc
src/rgw/rgw_acl_swift.h
src/rgw/rgw_rest_swift.cc