Enable expired-object-all-versions (#18954)

Signed-off-by: Shubhendu Ram Tripathi <shubhendu@minio.io>
This commit is contained in:
Shubhendu
2024-02-07 03:06:22 +05:30
committed by GitHub
parent 9bcc46d93d
commit 980fb5e2ab
2 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -177,7 +177,7 @@ func (e Expiration) Validate() error {
return errLifecycleInvalidDeleteMarker
}
if !e.DeleteMarker.set && e.IsDaysNull() && e.IsDateNull() {
if !e.DeleteMarker.set && !e.DeleteAll.set && e.IsDaysNull() && e.IsDateNull() {
return errXMLNotWellFormed
}