CompleteMultipartUpload has x-amz-version-id missing in its response body
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Confirmed
|
Medium
|
ASHWIN A NAIR |
Bug Description
We found this bug where after we had created a multipart upload, uploaded parts and then completed a mpu, we have versionID missing from the response body of the complete multipart upload operation even when versioning is enabled for a bucket.
The following sequence of commands will illustrate the bug:
```
aws s3api create-
{
"Bucket": "testpart",
"Key": "test.mp4",
"UploadId": "Y2Q3YjdiYWItOW
}
aws s3api upload-part --bucket testversion --key test.mp4 --part-number 1 --body ./test-parts/xaa --upload-id Y2Q3YjdiYWItOWE
{
"ETag": "\"4051199a5047
}
aws s3api upload-part --bucket testversion --key test.mp4 --part-number 2 --body ./test-parts/xab --upload-id Y2Q3YjdiYWItOWE
{
"ETag": "\"eee81eda7931
}
aws s3api upload-part --bucket testversion --key test.mp4 --part-number 3 --body ./test-parts/xac --upload-id Y2Q3YjdiYWItOWE
{
"ETag": "\"2589ea0b2337
}
aws s3api upload-part --bucket testversion --key test.mp4 --part-number 4 --body ./test-parts/xad --upload-id Y2Q3YjdiYWItOWE
{
"ETag": "\"4f4caa01c98d
}
aws s3api complete-
{
"Location": "http://
"Bucket": "testpart",
"Key": "test.mp4",
"ETag": "\"63cbae132cd7
}
aws s3api get-bucket-
{
"Status": "Enabled"
}
```
Changed in swift: | |
assignee: | nobody → ASHWIN A NAIR (indianwhocodes) |
Note that s3api will return the version-id on normal put-object calls to a x-versions-enabled: true bucket:
vagrant@saio:~$ aws s3api put-object --bucket s3test --key test --body test c9e337b0099bd41 74b28\" ",
{
"ETag": "\"70c1db56f301
"VersionId": "1700147883.21778"
}
... really any swift response that includes a x-version-id will be returned as x-amz-version-id; but complete- multipart- upload makes multiple sub-requests and the version-id from the ?multipart- manifest= put response isn't making it's way back to the client.
It should:
https:/ /docs.aws. amazon. com/AmazonS3/ latest/ API/API_ CompleteMultipa rtUpload. html