Mimetype set in the return value of AsyncRequestBody.fromString(String string, Charset cs) ignores Charset.
See original GitHub issueDescribe the bug
SSIA
Expected Behavior
text/plain; charset=${input}
is set.
Current Behavior
text/plain; charset=UTF-8
is always set.
Reproduction Steps
Execute the following code https://github.com/aws/aws-sdk-java-v2/blob/2879b9581a5c4427665ce111478c81d0630cbb71/core/sdk-core/src/main/java/software/amazon/awssdk/core/async/AsyncRequestBody.java#L117-L127
Possible Solution
Set appropriate values from input.
Additional Information/Context
No response
AWS Java SDK version used
2.17.264
JDK version used
unrelated
Operating System and version
unrelated
Issue Analytics
- State:
- Created a year ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
AsyncRequestBody (AWS SDK for Java - 2.18.30)
Creates an AsyncRequestBody that uses a single string as data with UTF_8 encoding. static AsyncRequestBody. fromString(String string, Charset cs). Creates an ...
Read more >MimePart (Java EE 5 SDK) - Oracle Help Center
Convenience method that sets the given String as this part's content, with a MIME type of "text/plain". void, setText(String text, String charset)
Read more >org.scalatest.wordspec.AnyWordSpec Scala Example
fromString ("$foo")) } "render JSON values" in { val rendered ... package endpoints4s.algebra.server import java.nio.charset.
Read more >What's the difference between text/xml vs application/xml for ...
The default character set, which must be assumed in the absence of a charset ... such difficulties can be avoided when using application/xml...
Read more >AWS S3 with Java - Reactive Support - Baeldung
Get started with Spring 5 and Spring Boot 2, through the Learn Spring ... we're disabling checksum validation and enabling chunked encoding.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fix merged, and will be go out with the next SDK release.
⚠️COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see. If you need more assistance, please 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.