aboutsummaryrefslogtreecommitdiff
path: root/weed/s3api/s3_constants
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2025-11-20 11:42:22 -0800
committerGitHub <noreply@github.com>2025-11-20 11:42:22 -0800
commit5f77f8733511d6d2bc4f47df7c477c4f9c25a727 (patch)
tree10c58807bcba42022c8ccb6df44f181297d2b40a /weed/s3api/s3_constants
parent6281e62d7f6cfbc6632de05829897bbd0fd2c992 (diff)
downloadseaweedfs-5f77f8733511d6d2bc4f47df7c477c4f9c25a727.tar.xz
seaweedfs-5f77f8733511d6d2bc4f47df7c477c4f9c25a727.zip
S3: S3 Object Retention API to include XML namespace support (#7517)
* Refactor S3 Object Retention API to include XML namespace support and improve compatibility with Veeam. Updated XML tags to remove hardcoded namespaces and added test cases for retention and legal hold configurations without namespaces. * Added XMLNS field setting in both places
Diffstat (limited to 'weed/s3api/s3_constants')
-rw-r--r--weed/s3api/s3_constants/header.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/weed/s3api/s3_constants/header.go b/weed/s3api/s3_constants/header.go
index e4c0ad77b..1ef6f62c5 100644
--- a/weed/s3api/s3_constants/header.go
+++ b/weed/s3api/s3_constants/header.go
@@ -23,6 +23,11 @@ import (
"github.com/gorilla/mux"
)
+// S3 XML namespace
+const (
+ S3Namespace = "http://s3.amazonaws.com/doc/2006-03-01/"
+)
+
// Standard S3 HTTP request constants
const (
// S3 storage class