0005-00000415

更新时间:
复制 MD 格式

Problem description

The value of the x-oss-meta-client-side-encryption-wrap-alg header in the UploadPart request does not match the value set in the InitiateMultipartUpload request.

Causes

The value of the x-oss-meta-client-side-encryption-wrap-alg header in the UploadPart request is not the same as the value specified in the InitiateMultipartUpload request.

Examples

The following requests trigger this error because value1 (InitiateMultipartUpload) and value2 (UploadPart) do not match.

InitiateMultipartUpload request:

POST /multipart.data?uploads HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Wed, 22 Feb 2012 08:32:21 GMT
x-oss-storage-class: Archive
Authorization: OSS qn6q**************:77Dv****************
x-oss-meta-client-side-encryption-wrap-alg: value1

UploadPart request (incorrect):

PUT /multipart.data?partNumber=1&uploadId=0004B9895DBBB6EC9****  HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Content-Length: 6291456
Date: Wed, 22 Feb 2012 08:32:21 GMT
Authorization: OSS qn6q**************:77Dv****************
x-oss-meta-client-side-encryption-wrap-alg: value2
[6291456 bytes data]

Solutions

Set x-oss-meta-client-side-encryption-wrap-alg to the same value in the InitiateMultipartUpload request and UploadPart request.

References