Browse Source

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
pull/5163/head
Konstantin Lebedev 1 year ago
committed by GitHub
parent
commit
4f6172f369
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      weed/s3api/s3api_bucket_handlers.go

9
weed/s3api/s3api_bucket_handlers.go

@ -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),
},
})
}
Loading…
Cancel
Save