]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: Fix Host->bucket fallback logic inversion 10873/head
authorRobin H. Johnson <robin.johnson@dreamhost.com>
Thu, 25 Aug 2016 15:04:34 +0000 (08:04 -0700)
committerRobin H. Johnson <robin.johnson@dreamhost.com>
Thu, 25 Aug 2016 15:04:34 +0000 (08:04 -0700)
commit0e0a4bc3dcb61c2e8dfe65daefe207c62b36306c
treec7650a1c3b4191ef29142a5128f7a9f8f1faf968
parentae81907146920a1462712524a3100adde73a490c
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