From 64ec17b463660cd0a95bdea4de3d30416994af91 Mon Sep 17 00:00:00 2001 From: Nitish Tiwari Date: Thu, 13 Feb 2020 14:48:29 +0530 Subject: [PATCH] Fix Legal Hold request parsing (#8981) AWS S3 doesn't enforce the URL in XMLNS, accordingly, removing the URL in XMLNS for ObjectLegalHold. This was found while testing https://github.com/minio/minio-go/pull/1226 --- pkg/bucket/object/lock/lock.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/bucket/object/lock/lock.go b/pkg/bucket/object/lock/lock.go index 561ba4a80..24d38ef9a 100644 --- a/pkg/bucket/object/lock/lock.go +++ b/pkg/bucket/object/lock/lock.go @@ -484,9 +484,6 @@ func ParseObjectLegalHold(reader io.Reader) (hold *ObjectLegalHold, err error) { if hold.Status != ON && hold.Status != OFF { return nil, ErrMalformedXML } - if hold.XMLNS == "" { - hold.XMLNS = "http://s3.amazonaws.com/doc/2006-03-01/" - } return }