From bc64ed51c53f0deaf0e53316aa9ec85a5b349f69 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 18 Jan 2026 20:28:01 -0800 Subject: [PATCH] Fix CopyObject If-Match ETag mismatch by copying Md5 attribute (#8053) --- weed/s3api/s3api_object_handlers_copy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/weed/s3api/s3api_object_handlers_copy.go b/weed/s3api/s3api_object_handlers_copy.go index d4ef3b52e..491feb26b 100644 --- a/weed/s3api/s3api_object_handlers_copy.go +++ b/weed/s3api/s3api_object_handlers_copy.go @@ -1045,6 +1045,7 @@ func (s3a *S3ApiServer) validateConditionalCopyHeaders(r *http.Request, entry *f Mtime: time.Unix(entry.Attributes.Mtime, 0), Crtime: time.Unix(entry.Attributes.Crtime, 0), Mime: entry.Attributes.Mime, + Md5: entry.Attributes.Md5, }, Chunks: entry.Chunks, }