s3api: preserve lifecycle config responses for Terraform (#8805)

* s3api: preserve lifecycle configs for terraform

* s3api: bound lifecycle config request bodies

* s3api: make bucket config updates copy-on-write

* s3api: tighten string slice cloning
This commit is contained in:
Chris Lu
2026-03-27 22:50:02 -07:00
committed by GitHub
parent 0adb78bc6b
commit e3f052cd84
8 changed files with 475 additions and 18 deletions

View File

@@ -100,6 +100,11 @@ func writeSuccessResponseXML(w http.ResponseWriter, r *http.Request, response in
s3err.PostLog(r, http.StatusOK, s3err.ErrNone)
}
func writeSuccessResponseXMLBytes(w http.ResponseWriter, r *http.Request, response []byte) {
s3err.WriteResponse(w, r, http.StatusOK, response, s3err.MimeXML)
s3err.PostLog(r, http.StatusOK, s3err.ErrNone)
}
func writeSuccessResponseEmpty(w http.ResponseWriter, r *http.Request) {
s3err.WriteEmptyResponse(w, r, http.StatusOK)
}