Problem description
The x-oss-copy-source header in the UploadPartCopy request has an invalid value.
Causes
The value of x-oss-copy-source must start with a forward slash (/). The header accepts the following formats:
/bucket-name/object-name— copy from the latest version of the source object/bucket-name/object-name?versionId=<version-id>— copy from a specific version of the source object
If the value does not start with /, OSS rejects the request with this error.
Examples
The following request fails because the x-oss-copy-source value does not start with /:
PUT /multipart.data?partNumber=1&uploadId=0004B9895DBBB6EC98E36 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-copy-source: oss-example/src-object
x-oss-copy-source-range:bytes=100-6291756Solutions
Add a leading / to the x-oss-copy-source value:
PUT /multipart.data?partNumber=1&uploadId=0004B9895DBBB6EC98E36 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-copy-source: /oss-example/src-object
x-oss-copy-source-range:bytes=100-6291756