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

ListObjectsUnmarshaller.unmarshall method is removing the special character from the file name #5328

Closed
1 task
vikranthpatoju opened this issue Oct 10, 2024 · 2 comments

Comments

@vikranthpatoju
Copy link

vikranthpatoju commented Oct 10, 2024

Describe the bug

I am trying to send the API request to S3 to get the list of files from a bucket.
Sample Endpoint - https://evidences-civil1.s3.amazonaws.com/. There are few files in the bucket having filenames with special characters (eg: [email protected]).
As part of my solution, i am using the S3 SDK to retrieve the data and display them locally but when using this method as below, it does remove the special character from the file like this - Screenshot [email protected].
ListObjectsUnmarshaller unmarshaller = new Unmarshallers.ListObjectsUnmarshaller(true);
return unmarshaller.unmarshall(inputStream);

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

Ideally ListObjectsUnmarshaller.unmarshall should return the same output without sanitizing it.

Current Behavior

There are no relavant errors as such

Reproduction Steps

ListObjectsUnmarshaller unmarshaller = new Unmarshallers.ListObjectsUnmarshaller(true);
return unmarshaller.unmarshall(inputStream);

Possible Solution

I see that boolean flag "sanitizeXmlDocument" is always set to true. Cant we add to the constructor to override the behaviour

No response

Additional Information/Context

No response

SDK version used

sdk 1.12.520

Environment details (Version of Go (go version)? OS name and version, etc.)

Linux

@vikranthpatoju vikranthpatoju added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Oct 10, 2024
@lucix-aws
Copy link
Contributor

This is the repository for the v1 AWS SDK for the Go programming language. You do not appear to be using the Go SDK. I'm not able to discern the language you're using from the sample code provided. You'll need to identify the appropriate repository and re-file.

@lucix-aws lucix-aws closed this as not planned Won't fix, can't repro, duplicate, stale Oct 10, 2024
Copy link

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@lucix-aws lucix-aws removed bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants