]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix checking index_doc_suffix when getting effective key 30980/head
authorEnming Zhang <enming.zhang@umcloud.com>
Wed, 10 Jul 2019 07:48:57 +0000 (00:48 -0700)
committerNathan Cutler <ncutler@suse.com>
Thu, 17 Oct 2019 16:58:29 +0000 (18:58 +0200)
commit2267b67279ee614d28a616b001ed2c5cfce44c33
tree13d5690bde1dbb5b7e0be026eec36566401cbab8
parent4c87a3a03d7c9f19e514ab95ad06e3bbb5971a23
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>
(cherry picked from commit c96f415dafe176b1b8d10ff9456d13fb76c79baa)

Conflicts:
src/rgw/rgw_rest_s3.cc
- ldpp_dout
src/rgw/rgw_rest_s3.cc
src/rgw/rgw_website.cc
src/rgw/rgw_website.h