lifecycle: Assign unique id to rules with empty id (#15731)

This commit is contained in:
Krishnan Parthasarathi
2022-09-22 10:51:54 -07:00
committed by GitHub
parent 6e84283c66
commit 6f56ba80b3
4 changed files with 48 additions and 23 deletions

View File

@@ -67,7 +67,7 @@ func (api objectAPIHandlers) PutBucketLifecycleHandler(w http.ResponseWriter, r
return
}
bucketLifecycle, err := lifecycle.ParseLifecycleConfig(io.LimitReader(r.Body, r.ContentLength))
bucketLifecycle, err := lifecycle.ParseLifecycleConfigWithID(io.LimitReader(r.Body, r.ContentLength))
if err != nil {
writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
return