]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: Fallback to Host header for bucket name. 9354/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>
Wed, 8 Jun 2016 19:51:15 +0000 (12:51 -0700)
commit46aae19eeb91bf3ac78a94c9d4812a788d9042a8
tree9c789da6a39da6a01e3cc0de663bf615318a1627
parentc6deb14209c42c290448eba1daaacc2cfdbf67a2
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>
src/rgw/rgw_rest.cc
src/rgw/rgw_rest.h
src/rgw/rgw_rest_s3.h
src/rgw/rgw_rest_swift.h