]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: fix checking index_doc_suffix when getting effective key
authorEnming Zhang <enming.zhang@umcloud.com>
Wed, 10 Jul 2019 07:48:57 +0000 (00:48 -0700)
committerEnming Zhang <enming.zhang@umcloud.com>
Wed, 10 Jul 2019 08:19:02 +0000 (01:19 -0700)
commitc96f415dafe176b1b8d10ff9456d13fb76c79baa
tree7fc536e69c66af6512e79481b4cc2a885341f5a5
parent355f392ad26631f44dac250296e96f421d86fb8f
rgw: fix checking index_doc_suffix when getting effective key

Currently, if the index_doc_suffix is empty which is leaded
by the IndexDocument field is not configurated or is set to
empty string during enabling bucket website function, the
rgw will crash when accessing the static website through the
S3Website enabled RGW instance.

In actually, we have add the necessary checking in the commit
355f392ad26631f44dac250296e96f421d86fb8f, but double checking
in here is better.

Signed-off-by: Enming Zhang <enming.zhang@umcloud.com>
src/rgw/rgw_rest_s3.cc
src/rgw/rgw_website.cc
src/rgw/rgw_website.h