Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initiate multipart upload key contain "&" response with malformed xml #1189

Open
pybt opened this issue Jul 22, 2019 · 1 comment
Open

Initiate multipart upload key contain "&" response with malformed xml #1189

pybt opened this issue Jul 22, 2019 · 1 comment

Comments

@pybt
Copy link

pybt commented Jul 22, 2019

Put file with s3cmd that will trigger multipart upload.

s3cmd put filename_contain_\&.test s3://leofs-test-8080

Leofs response

<?xml version="1.0" encoding="UTF-8"?>
<InitiateMultipartUploadResult>
    <Bucket>leofs-test-8080</Bucket>
    <Key>filename-contain-&.test</Key>
    <UploadId>ea6c9a81436749bb8004da2af1a13ae6</UploadId>
</InitiateMultipartUploadResult>

Expected response

<?xml version="1.0" encoding="UTF-8"?>
<InitiateMultipartUploadResult>
    <Bucket>leofs-test-8080</Bucket>
    <Key>filename-contain-&amp;.test</Key> 
    <UploadId>ea6c9a81436749bb8004da2af1a13ae6</UploadId>
</InitiateMultipartUploadResult>

This problem also occur in Complete multipart upload.

@yosukehara
Copy link
Member

Thank you for sharing this issue. I'll check it then fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants