From: Jeegn Chen Date: Thu, 16 Nov 2017 01:12:24 +0000 (+0800) Subject: rgw: AWS v4 authorization work when INIT_MULTIPART is chunked X-Git-Tag: v13.0.1~184^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F18956%2Fhead;p=ceph.git rgw: AWS v4 authorization work when INIT_MULTIPART is chunked Add RGW_OP_INIT_MULTIPART as a the single chunk special case like RGW_OP_COMPLETE_MULTIPART. Fixes: http://tracker.ceph.com/issues/22129 Signed-off-by: Jeegn Chen --- diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc index bdd8ea4ee85..cc8923d76cc 100644 --- a/src/rgw/rgw_rest_s3.cc +++ b/src/rgw/rgw_rest_s3.cc @@ -3826,6 +3826,7 @@ AWSGeneralAbstractor::get_auth_data_v4(const req_state* const s, case RGW_OP_PUT_OBJ: case RGW_OP_PUT_ACLS: case RGW_OP_PUT_CORS: + case RGW_OP_INIT_MULTIPART: // in case that Init Multipart uses CHUNK encoding case RGW_OP_COMPLETE_MULTIPART: case RGW_OP_SET_BUCKET_VERSIONING: case RGW_OP_DELETE_MULTI_OBJ: