]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: AWS v4 authorization work when INIT_MULTIPART is chunked 19506/head
authorJeegn Chen <jeegnchen@gmail.com>
Thu, 16 Nov 2017 01:12:24 +0000 (09:12 +0800)
committerShinobu Kinjo <shinobu@redhat.com>
Wed, 13 Dec 2017 23:11:36 +0000 (18:11 -0500)
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>
(cherry picked from commit c8827e5017ce81377cb174ad74cc2f44c3368457)

src/rgw/rgw_rest_s3.cc

index aa5b525d04da84cf73837af223f094fa94b0e9c9..5ed6597a6f5fa73b9a784a0df876bba5134e2ea2 100644 (file)
@@ -3824,6 +3824,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: