]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: Fallback to Host header for bucket name. 10693/head
authorRobin H. Johnson <robin.johnson@dreamhost.com>
Thu, 26 May 2016 22:41:20 +0000 (15:41 -0700)
committerRobin H. Johnson <robin.johnson@dreamhost.com>
Thu, 11 Aug 2016 16:51:49 +0000 (09:51 -0700)
commit3ff6e8fa852346f4b69cd8c10b2f14ae4983d527
tree4213b0f287e5d646c1c7e3b734adf75e5e3733ba
parentec14cf5ce3e8d04eee3f13aadcfc2d7f22c5a633
rgw: Fallback to Host header for bucket name.

RGW should fallback to using the Host header as the bucket name if valid &
possible even when it is NOT a suffix match against the DNS names, or a match
against the CNAME rule.

This mirrors AWS S3 behavior for these cases (The AWS S3 does not do any DNS
lookups regardless).

Backport: jewel
Fixes: http://tracker.ceph.com/issues/15975
Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
(cherry picked from commit 46aae19eeb91bf3ac78a94c9d4812a788d9042a8)
src/rgw/rgw_rest.cc
src/rgw/rgw_rest.h
src/rgw/rgw_rest_s3.h
src/rgw/rgw_rest_swift.h