]> 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)
committerAbhishek Varshney <abhishek.varshney@flipkart.com>
Thu, 3 Nov 2016 09:02:04 +0000 (14:32 +0530)
commitb72fc1b820ede3cd186d887d9d30f7f91fe3764b
tree78a641914ecf64ebf285ca7e4b9d3435d1101215
parent7b3ec119cb968a26526ad95355c5bf7525fb5346
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>
(cherry picked from commit 70e0289644f4a7205e6c2f75a094ece8ab5ed97c)
src/rgw/rgw_rest.cc