Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

s3: invalid tagging on CopyObject returns InvalidTag, not InvalidCopySource (#10362)

Chris Lud8196428e75c
diff --git a/weed/s3api/s3api_object_handlers_copy.go b/weed/s3api/s3api_object_handlers_copy.go
index 8e9c1090e2..abec42af92 100644
--- a/weed/s3api/s3api_object_handlers_copy.go
+++ b/weed/s3api/s3api_object_handlers_copy.go
@@ -367,7 +367,8 @@ func (s3a *S3ApiServer) CopyObjectHandler(w http.ResponseWriter, r *http.Request
// to preserve the encryption header filtering. Fixes GitHub #7562.
processedMetadata, tagErr := processMetadataBytes(r.Header, dstEntry.Extended, replaceMeta, replaceTagging)
if tagErr != nil {
- s3err.WriteErrorResponse(w, r, s3err.ErrInvalidCopySource)
+ glog.Errorf("CopyObjectHandler ValidateTags error %s: %v", r.URL, tagErr)
+ s3err.WriteErrorResponse(w, r, s3err.ErrInvalidTag)
return
}