Broken encoding in response body if application is running on OpenShift
See original GitHub issueDescribe the bug
Given:
- Application uses quarkus-resteasy-reactive-jackson
- The application is run on OpenShift
- 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?
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
Issue Analytics
- State:
- Created 2 years ago
- Comments:20 (19 by maintainers)
Top Results From Across the Web
Chapter 7. Troubleshooting OpenShift Container Platform 4.8
Check whether your chosen cloud provider offers a method to inject Ignition configuration files into hosts as part of their initial deployment. If...
Read more >Authentication | Architecture | OpenShift Container Platform 3.11
The OpenShift Container Platform master includes a built-in OAuth server. Users obtain OAuth access tokens to authenticate themselves to the API. When a...
Read more >Spring Boot Reference Documentation
To help with this, Spring Boot allows you to encode a block of properties into a single JSON structure. When your application starts, ......
Read more >Troubleshooting GitLab Runner
If you use an automated process (scripts that encode the value of the ... If GitLab Runner is running as a service on...
Read more >HAProxy version 2.2.22 - Configuration Manual - GitHub Pages
When HAProxy is running in HTTP mode, both the request and the response are fully ... Unless the application behavior is very complex...
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
BTW, +100 for
Thinking fast and slow
in the tests 😃https://github.com/quarkusio/quarkus/pull/22644 fixes the issue