Skip to content

Multipart PUT - XML you provided was not well-formed - HCP for Cloud Scale #1731

@alex5517

Description

@alex5517

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>&#34;a8199196f91603aeeee899cee01b7ae6&#34;</ETag>
    <PartNumber>1</PartNumber></Part>
    <Part><ETag>&#34;7edf0e8a6bae1d1c9baa03971cdb690a&#34;</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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions