mirror of
https://github.com/minio/minio.git
synced 2025-12-07 08:12:37 -05:00
canonicalize ETag correctly (#7442)
Fixes #7441 Trim extra quotes prefixing/suffixing ETag in CompleteMultipartUpload request.
This commit is contained in:
@@ -675,6 +675,8 @@ func (xl xlObjects) CompleteMultipartUpload(ctx context.Context, bucket string,
|
||||
|
||||
// Validate each part and then commit to disk.
|
||||
for i, part := range parts {
|
||||
// ensure that part ETag is canonicalized to strip off extraneous quotes
|
||||
part.ETag = canonicalizeETag(part.ETag)
|
||||
partIdx := objectPartIndex(currentXLMeta.Parts, part.PartNumber)
|
||||
// All parts should have same part number.
|
||||
if partIdx == -1 {
|
||||
|
||||
Reference in New Issue
Block a user