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
master
Nitish Tiwari 5 years ago committed by GitHub
parent 6b9805e891
commit 64ec17b463
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      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
}

Loading…
Cancel
Save