question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mimetype set in the return value of AsyncRequestBody.fromString(String string, Charset cs) ignores Charset.

See original GitHub issue

Describe 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:closed
  • Created a year ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
millemscommented, Sep 28, 2022

Fix merged, and will be go out with the next SDK release.

0reactions
github-actions[bot]commented, Sep 28, 2022

⚠️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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found