Problem description
This error occurs in a client-based encryption scenario if the value of the x-oss-meta-client-side-encryption-part-size request header is not an integer in an InitiateMultipartUpload, UploadPart, or CompleteMultipartUpload request.
Causes
In a client-based encryption scenario, the value of the x-oss-meta-client-side-encryption-part-size request header must be an integer for InitiateMultipartUpload, UploadPart, and CompleteMultipartUpload requests.
Examples
For example, you initiate an 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-key: val0
x-oss-meta-client-side-encryption-start: val1
x-oss-meta-client-side-encryption-cek-alg: val2
x-oss-meta-client-side-encryption-wrap-alg: rsa
x-oss-meta-client-side-encryption-magic-number-hmac: val4
x-oss-meta-client-side-encryption-data-size: val5
x-oss-meta-client-side-encryption-part-size: 9x5.2The request fails because the value of the x-oss-meta-client-side-encryption-part-size request header is not an integer.
Solutions
In a client-based encryption scenario, ensure that the value of the x-oss-meta-client-side-encryption-part-size request header is an integer for InitiateMultipartUpload, UploadPart, and CompleteMultipartUpload requests.