Project

General

Profile

Actions

Bug #40678

closed

RGW S3Website didn't do the necessary checking to the website configuration

Added by Enming Zhang almost 5 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
website
Backport:
luminous mimic nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

According to AWS S3, https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTwebsite.html
- To redirect all website requests sent to the bucket's website endpoint, you add a website configuration with the following elements. Because all requests are sent to another website, you don't need to provide index document name for the bucket.
- If you want granular control over redirects, you can use the following elements to add routing rules that describe conditions for redirecting requests and information about the redirect destination. In this case, the website configuration must provide an index document for the bucket, because some requests might not be redirected.

But now, the RGW don't do the necessary checking to the IndexDocument field when the RedirectAllRequestsTo is not provided, which will lead the IndexDocument Suffix to be empty without any error being reported.

In this case,if we access the static website through the S3Website enabled RGW instance,the RGW instance will crash.

In function 'void RGWObjectCtxImpl<T, S>::set_atomic(T&) [with        T = rgw_obj; S = RGWObjState]' thread 7f36591ea700 time 2019-07-02 22:26:22.096930
/ceph/src/rgw/rgw_rados.h: 2164: FAILED assert(!obj.empty())

Related issues 4 (0 open4 closed)

Has duplicate rgw - Bug #41370: [RGW] RGW in website mode: rgw_rados.h: 2150: FAILED assert(!obj.empty()DuplicateCasey Bodley

Actions
Copied to rgw - Backport #41496: mimic: RGW S3Website didn't do the necessary checking to the website configurationResolvedNathan CutlerActions
Copied to rgw - Backport #41497: luminous: RGW S3Website didn't do the necessary checking to the website configurationRejectedNathan CutlerActions
Copied to rgw - Backport #41498: nautilus: RGW S3Website didn't do the necessary checking to the website configurationResolvedAbhishek LekshmananActions
Actions

Also available in: Atom PDF