mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
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
This commit is contained in:
parent
6b9805e891
commit
64ec17b463
@ -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…
Reference in New Issue
Block a user