Problem description
The x-oss-copy-source
parameter in the UploadPartCopy request is invalid.
Causes
The x-oss-copy-source
parameter that you specified in the UploadPartCopy request to copy data from an existing object is invalid. The x-oss-copy-source parameter specifies the source object from which you want to copy data. This parameter is in the /oss-example/src-object
or /oss-example/src-object?versionId=CAEQMxiBgMC0vs6D0BYiIGJiZWRjOTRjNTg0NzQ1MTRiN2Y1OTYxMTdkYjQ0****
format. You can use the second format to specify the version of the source object.
Examples
For example, you initiate the following request:
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
The error is returned for the sample request because the value of the x-oss-copy-source
parameter does not start with a forward slash (/
).
Solutions
Make sure that the x-oss-copy-source
parameter is set to a valid 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