]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix invalid payload issue when serving s3website error page 38590/head
authorIlsoo Byun <ilsoobyun@linecorp.com>
Mon, 2 Nov 2020 07:10:44 +0000 (16:10 +0900)
committerNathan Cutler <ncutler@suse.com>
Tue, 15 Dec 2020 14:21:43 +0000 (15:21 +0100)
Fixes: https://tracker.ceph.com/issues/48064
Signed-off-by: Ilsoo Byun <ilsoobyun@linecorp.com>
(cherry picked from commit f3df3d3763c1d50cd734f4d73055454d1b64f978)

Conflicts:
src/rgw/rgw_rest_s3.cc
- RGWHandler_REST_S3Website::serve_errordoc() takes different arguments in
  nautilus

src/rgw/rgw_rest_s3.cc

index 703fff8d981112a3f67f715617d063ddb0c34890..f25890f527ab8a8a6ce7c72d870d7fd9bd54ceef 100644 (file)
@@ -4310,7 +4310,7 @@ int RGWHandler_REST_S3Website::error_handler(int err_no,
        On failure, we need the double-error handler
      */
     new_err_no = RGWHandler_REST_S3Website::serve_errordoc(http_error_code, s->bucket_info.website_conf.error_doc);
-    if (new_err_no && new_err_no != -1) {
+    if (new_err_no != -1) {
       err_no = new_err_no;
     }
   } else {