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

RESTEasy Reactive broken text on Windows #398

Closed
snowdrop-bot opened this issue Aug 24, 2021 · 0 comments
Closed

RESTEasy Reactive broken text on Windows #398

snowdrop-bot opened this issue Aug 24, 2021 · 0 comments
Assignees
Labels
7 - Community development upstream/closed The issue has been closed in the upstream repository

Comments

@snowdrop-bot
Copy link
Collaborator

Describe the bug

In a Windows environment, RESTEasy Reactive endpoints do not preserve text charset between request and response.

@Path("/echo")
public class EchoResource {

    @POST
    @Path("/text")
    @Consumes(MediaType.TEXT_PLAIN)
    @Produces(MediaType.TEXT_PLAIN)
    public String echo(String request) {
        return request;
    }
}
curl -d "ěščřžýáíé" -H "Content-Type: text/plain; charset=cp1252" http://localhost:8080/echo/text

Response:

e�cr�����

The same goes for an endpoint accepting multipart data (see attached reproducer).

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

resteasy-reactive-encoding-reproducer.zip

unzip ./resteasy-reactive-encoding-reproducer.zip
cd ./resteasy-reactive-encoding-reproducer
./mvnw.cmd clean verify

Output of uname -a or ver

No response

Output of java -version

openjdk version "11.0.11" 2021-04-20 OpenJDK Runtime Environment GraalVM CE 21.1.0 (build 11.0.11+8-jvmci-21.1-b05) OpenJDK 64-Bit Server VM GraalVM CE 21.1.0 (build 11.0.11+8-jvmci-21.1-b05, mixed mode, sharing)

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.1.3.Final

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d) Maven home: C:\Users\hudson.m2\wrapper\dists\apache-maven-3.8.1-bin\2l5mhf2pq2clrde7f7qp1rdt5m\apache-maven-3.8.1 Java version: 11.0.11, vendor: GraalVM Community, runtime: C:\Program Files\GraalVM\graalvm-ce-java11-21.1.0 Default locale: en_US, platform encoding: Cp1252 OS name: "windows server 2019", version: "10.0", arch: "amd64", family: "windows"

Additional information

No response


quarkusio#19535


$upstream:19535$

@snowdrop-bot snowdrop-bot added the upstream/closed The issue has been closed in the upstream repository label Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
7 - Community development upstream/closed The issue has been closed in the upstream repository
Projects
None yet
Development

No branches or pull requests

2 participants