Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rgw: Allow swift acls to be deleted. #20471

Merged
merged 1 commit into from Feb 27, 2018

Conversation

mdw-at-linuxbox
Copy link
Contributor

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

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>
@liewegas liewegas changed the title Allow swift acls to be deleted. rgw: Allow swift acls to be deleted. Feb 20, 2018
@yuriw
Copy link
Contributor

yuriw commented Feb 26, 2018

@yuriw yuriw merged commit 9cafa7c into ceph:master Feb 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants