Fix missing VersionConfiguration node in get-bucket-versioning response (#5162)

* fix: s3 response for get bucket version
https://github.com/seaweedfs/seaweedfs/issues/5155

* fix: s3 response for get bucket version
https://github.com/seaweedfs/seaweedfs/issues/5155
This commit is contained in:
Konstantin Lebedev 2024-01-04 01:27:13 +05:00 committed by GitHub
parent 3e43778869
commit 4f6172f369
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -545,8 +545,9 @@ func (s3a *S3ApiServer) GetBucketVersioningHandler(w http.ResponseWriter, r *htt
return
}
result := &s3.VersioningConfiguration{}
result.SetStatus(s3.BucketVersioningStatusSuspended)
s3err.WriteAwsXMLResponse(w, r, http.StatusOK, result)
s3err.WriteAwsXMLResponse(w, r, http.StatusOK, &s3.PutBucketVersioningInput{
VersioningConfiguration: &s3.VersioningConfiguration{
Status: aws.String(s3.BucketVersioningStatusSuspended),
},
})
}