]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Allow swift acls to be deleted. 22465/head
authorMarcus Watts <mwatts@redhat.com>
Wed, 31 Jan 2018 20:46:57 +0000 (15:46 -0500)
committerPrashant D <pdhange@redhat.com>
Fri, 8 Jun 2018 03:29:47 +0000 (23:29 -0400)
commit265a1c1dfd6651d145b1672ab1cd2e45e251c388
treefa7bfd6fb62b822004216dde094f156ff32339e6
parent102a3a62f18d73e7b33b60c71ceda1b21167f1e1
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>
(cherry picked from commit 1fc69243bdfadb1a8c68a9fa5491e32287bc33b4)
src/rgw/rgw_acl_swift.cc
src/rgw/rgw_acl_swift.h
src/rgw/rgw_rest_swift.cc