-
Notifications
You must be signed in to change notification settings - Fork 693
Closed
Description
Hi,
I have an issue when using Minio-go against HCP for Cloud Scale.
Here's how i put my object in my tests.
_, err = client.PutObject(ctx, bucket, name, r, size, minio.PutObjectOptions{
NumThreads: 4,
},
)
The resulting error is The XML you provided was not well-formed or did not validate against our published schema.
.
I think the issue might be that xmlns is included in CompleteMultipartUpload
I also tried testing using aws-sdk-go which works just fine.
Here is the differences between the two:
AWS SDK GO:
<CompleteMultipartUpload xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Part><ETag>"a8199196f91603aeeee899cee01b7ae6"</ETag>
<PartNumber>1</PartNumber></Part>
<Part><ETag>"7edf0e8a6bae1d1c9baa03971cdb690a"</ETag>
<PartNumber>2</PartNumber></Part>
</CompleteMultipartUpload>
MINIO-GO:
<CompleteMultipartUpload xmlns="">
<Part xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<PartNumber>1</PartNumber><ETag>5f0cc9778afe6dc19dc364e2673f8d03</ETag></Part>
<Part xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<PartNumber>2</PartNumber><ETag>bf2ebedc90103f013f7e95f8abc10e5f</ETag></Part>
</CompleteMultipartUpload>
In an attempt to try and get the requests closer to how aws-sdk-go i tried removing http://s3.amazonaws.com/doc/2006-03-01/
from https://github.com/minio/minio-go/blob/master/api-s3-datatypes.go#L319 - After doing this it seems to be working?
Metadata
Metadata
Assignees
Labels
No labels