quarkus: Broken encoding in response body if application is running on OpenShift

Describe the bug

Given:

  1. Application uses quarkus-resteasy-reactive-jackson
  2. The application is run on OpenShift
  3. Application responds to HTTP request with response, which has HTTP status 200 and word “Slovník” in the body(the 6th letter is U+00ED, “LATIN SMALL LETTER I WITH ACUTE”)

Expected behavior

The client should receive http response with “Slovník” in the body.

Actual behavior

The client receives http response with “Slovn?k” in the body.

How to Reproduce?

Reproducer: https://github.com/fedinskiy/quarkus-test-suite/blob/openshift_fail/sql-db/hibernate-reactive/src/test/java/io/quarkus/ts/reactive/AbstractReactiveDatabaseIT.java#L37

Minimal reproducer: https://github.com/fedinskiy/quarkus-reproducer/tree/openshift_fail Scripts run.sh and stop.sh contain commands to start and stop the application on the OCP cluster respectively. Run curl ${path to your app}/hello/broken to get the result.

Output of uname -a or ver

4.18.0-305.el8.x86_64

Output of java -version

Java version: 11.0.12, vendor: Oracle Corporatio

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2c1be38c1f7dcdb0176c871f2d142f5f2a4cd1f2

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

Apache Maven 3.8.3 (ff8e977a158738155dc465c6a97ffaf31982d739)

Additional information

OpenShift 4.9

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20 (19 by maintainers)

Commits related to this issue

Most upvoted comments

BTW, +100 for Thinking fast and slow in the tests 😃