0005-00000408

问题描述

客户端加密场景下InitiateMultipartUpload、UploadPart、CompleteMultipartUpload请求头x-oss-meta-client-side-encryption-data-size的值不是整型数。

问题原因

客户端加密场景下,在InitiateMultipartUpload、UploadPart、CompleteMultipartUpload时,需要携带请求头x-oss-meta-client-side-encryption-data-size,其对应值必须为整型数。

问题示例

例如您发起了一个InitiateMultipartUpload请求:

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: 9x5.2
x-oss-meta-client-side-encryption-part-size: val6

由于请求头x-oss-meta-client-side-encryption-data-size中的值不是整型数,请求返回失败。

解决方案

客户端加密场景下,进行InitiateMultipartUpload、UploadPart、CompleteMultipartUpload时,需要携带请求头x-oss-meta-client-side-encryption-data-size,并保证其值为整型数。

相关文档