]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: Fix Host->bucket fallback logic inversion
authorRobin H. Johnson <robin.johnson@dreamhost.com>
Thu, 25 Aug 2016 15:04:34 +0000 (08:04 -0700)
committerCasey Bodley <cbodley@redhat.com>
Mon, 3 Oct 2016 18:25:23 +0000 (14:25 -0400)
commit70e0289644f4a7205e6c2f75a094ece8ab5ed97c
tree7dbcf372e3ee694abe1f3fa3ce6375b9092b6a43
parent2dc57754497db7a48530301801c8012bf6e8f033
rgw: Fix Host->bucket fallback logic inversion

The logic (added in 46aae19ee) for falling back to just using the hostname as
the possible bucket name contained an accidental inversion, because
RGWHandler_REST::validate_bucket_name returns success as zero.

Backport: jewel
Fixes: http://tracker.ceph.com/issues/17136
Re-Fixes: http://tracker.ceph.com/issues/15975
Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
src/rgw/rgw_rest.cc