]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: AWS v4 authorization work when INIT_MULTIPART is chunked 18956/head
authorJeegn Chen <jeegnchen@gmail.com>
Thu, 16 Nov 2017 01:12:24 +0000 (09:12 +0800)
committerJeegn Chen <jeegnchen@gmail.com>
Thu, 16 Nov 2017 01:12:24 +0000 (09:12 +0800)
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 <jeegnchen@gmail.com>
src/rgw/rgw_rest_s3.cc

index bdd8ea4ee8593fee5ffc65c034496e86dc6c5ce1..cc8923d76cc1aa83291a155868ae01faa3f562f0 100644 (file)
@@ -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: