CompleteMultipartUpload has x-amz-version-id missing in its response body
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
New
|
Undecided
|
Unassigned |
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"
}
```