]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix manager selection when APIs customized 9245/head
authorRobin H. Johnson <robin.johnson@dreamhost.com>
Fri, 20 May 2016 23:00:33 +0000 (16:00 -0700)
committerRobin H. Johnson <robin.johnson@dreamhost.com>
Fri, 27 May 2016 18:22:11 +0000 (11:22 -0700)
commitfae360f0e419266b80f001a25a6864668e772d08
tree99ec2312159c91b367e9a6bfb1a0b63f521e94b8
parentc11db6f103b2dd0049894a606916a84d66933833
rgw: fix manager selection when APIs customized

When modifying rgw_enable_apis per RGW instance, such as for staticsites, you
can end up with RESTManager instance being null in some cases, which returns a
HTTP 405 MethodNotAllowed to all requests.

Example configuration to trigger the bug:
rgw_enable_apis = s3website

Backport: jewel
X-Note: Patch from Yehuda in private IRC discussion, 2016/05/20.
Fixes: http://tracker.ceph.com/issues/15973
Fixes: http://tracker.ceph.com/issues/15974
Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
(cherry picked from commit 7c7a465b55f7100eab0f140bf54f9420abd1c776)
src/rgw/rgw_rest.cc