Closed tylerjroach closed 10 months ago
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.
Describe the bug
If PubObjectRequest (likely all other storage request types) metadata contains non-ASCII characters in a header pair, the request will fail.
OkHttp does not accept non-ASCII characters by default and requires adding flag for leniency or https://square.github.io/okhttp/5.x/okhttp/okhttp3/-headers/-builder/add-unsafe-non-ascii.html.
DefaultS3Client appears to use the default OkHttp config not allowing non-ASCII header values.
See report from Amplify v2 for more info: https://github.com/aws-amplify/amplify-android/issues/2657
Expected behavior
Allow non-ASCII characters in header values.
Current behavior
Request never attempted.
Steps to Reproduce
Initiate:
execute request
Possible Solution
No response
Context
No response
AWS Kotlin SDK version used
All
Platform (JVM/JS/Native)
JVM
Operating System and version
Android