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.

fix Tagging test

Konstantin Lebedevdc7e525cb983
diff --git a/weed/s3api/tags.go b/weed/s3api/tags.go
index 5cb5f8e476..9c1e911793 100644
--- a/weed/s3api/tags.go
+++ b/weed/s3api/tags.go
@@ -16,6 +16,7 @@ type TagSet struct {
type Tagging struct {
XMLName xml.Name `xml:"Tagging"`
TagSet TagSet `xml:"TagSet"`
+ Xmlns string `xml:"xmlns,attr"`
}
func (t *Tagging) ToTags() map[string]string {
diff --git a/weed/s3api/tags_test.go b/weed/s3api/tags_test.go
index 52adb36c19..d8beb19225 100644
--- a/weed/s3api/tags_test.go
+++ b/weed/s3api/tags_test.go
@@ -32,6 +32,7 @@ func TestXMLUnmarshall(t *testing.T) {
func TestXMLMarshall(t *testing.T) {
tags := &Tagging{
+ Xmlns: "http://s3.amazonaws.com/doc/2006-03-01/",
TagSet: TagSet{
[]Tag{
{