From a6ec4054434a3489110250c470be8caecf87667c Mon Sep 17 00:00:00 2001 From: Poorna Krishnamoorthy Date: Thu, 15 Jul 2021 15:01:59 -0700 Subject: [PATCH] fix: UpdateObjectVersion should compare versionID through versions (#12726) fixes #12703 --- cmd/xl-storage-format-v2.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/xl-storage-format-v2.go b/cmd/xl-storage-format-v2.go index 1f8f020d9..0331f5cc3 100644 --- a/cmd/xl-storage-format-v2.go +++ b/cmd/xl-storage-format-v2.go @@ -784,7 +784,9 @@ func (z *xlMetaV2) UpdateObjectVersion(fi FileInfo) error { return nil } case DeleteType: - return errMethodNotAllowed + if version.DeleteMarker.VersionID == uv { + return errMethodNotAllowed + } } }