From 8f65aba04b865e795d6f308627df7d0f4f274094 Mon Sep 17 00:00:00 2001 From: Poorna Krishnamoorthy Date: Fri, 11 Dec 2020 12:39:09 -0800 Subject: [PATCH] ignore NoSuchVersion error in DeleteObjects API (#11086) Currently, the error response reports NoSuchVersion for a non-existent version-id, whereas AWS ignores it. --- cmd/bucket-handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/bucket-handlers.go b/cmd/bucket-handlers.go index 9328556c2..5410817a1 100644 --- a/cmd/bucket-handlers.go +++ b/cmd/bucket-handlers.go @@ -503,7 +503,7 @@ func (api objectAPIHandlers) DeleteMultipleObjectsHandler(w http.ResponseWriter, DeleteMarkerReplicationStatus: dObjects[i].DeleteMarkerReplicationStatus, PurgeTransitioned: dObjects[i].PurgeTransitioned, }] - if errs[i] == nil || isErrObjectNotFound(errs[i]) { + if errs[i] == nil || isErrObjectNotFound(errs[i]) || isErrVersionNotFound(errs[i]) { if replicateDeletes { dObjects[i].DeleteMarkerReplicationStatus = deleteList[i].DeleteMarkerReplicationStatus dObjects[i].VersionPurgeStatus = deleteList[i].VersionPurgeStatus