mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
Add restrictions of object retention to AWS S3 limits (#8514)
This PR also fixes issues related - Peer notification handler was missing "/" - Missing prometheus metrics for retention APIs
This commit is contained in:
committed by
kannappanr
parent
64759189f5
commit
069b8ee8ff
@@ -984,7 +984,9 @@ func (api objectAPIHandlers) PutBucketObjectLockConfigHandler(w http.ResponseWri
|
||||
|
||||
config, err := parseObjectLockConfig(r.Body)
|
||||
if err != nil {
|
||||
writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrMalformedXML), r.URL, guessIsBrowserReq(r))
|
||||
apiErr := errorCodes.ToAPIErr(ErrMalformedXML)
|
||||
apiErr.Description = err.Error()
|
||||
writeErrorResponse(ctx, w, apiErr, r.URL, guessIsBrowserReq(r))
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user