-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Undertow with TLS causes IllegalStateException: Request has already been read #14811
Comments
/cc @evanchooly |
@geoand @stuartwdouglas The bot tagged the wrong area. This concerns Undertow. |
@renegrob Wow, I encountered the same bug yesterday, but you just beat me to it 😄 If it's still of any use, I also built a small sample project that reproduces the issue: https://github.com/markusdlugi/undertow-https-example Other than that, I can support everything @renegrob said, I've been encountering just the same issue, also running on Quarkus 1.11.1.Final. One additional thing I noticed: this only happens if HTTP 2 is enabled. So you can also workaround this issue by setting In fact, if you use a client that doesn't support HTTP 2 (Postman or IntelliJ HTTP Client), you won't ever run into the problem with |
About |
Fixes quarkusio#14811 (cherry picked from commit 14f65f5)
Describe the bug
If Undertow is used with TLS then request in DEV mode occasionally leading to a
java.lang.IllegalStateException: Request has already been read
.Expected behavior
Requests should be processed correctly.
Actual behavior
Not every request but 30-70% returns with a
java.lang.IllegalStateException: Request has already been read
.To Reproduce
Link to a small reproducer (preferably a Maven project if the issue is not Gradle-specific).
Or attach an archive containing the reproducer to the issue.
Steps to reproduce the behavior:
./gradlew quarkusDev`
implementation("io.quarkus:quarkus-undertow")
from the filebuild.gradle.kts
and execute the http requests again. The problem is gone. But without Undertow it is not possible to injectHttpServletRequest
in JAX-RS.Configuration
Stacktrace
Environment (please complete the following information):
Output of
uname -a
orver
:Linux automatix 5.8.0-41-generic #46~20.04.1-Ubuntu SMP Mon Jan 18 17:52:23 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
:java -version openjdk version "11.0.10" 2021-01-19 LTS OpenJDK Runtime Environment Zulu11.45+27-CA (build 11.0.10+9-LTS) OpenJDK 64-Bit Server VM Zulu11.45+27-CA (build 11.0.10+9-LTS, mixed mode)
GraalVM version (if different from Java):
Quarkus version or git rev:
Build tool (ie. output of
mvnw --version
orgradlew --version
):Additional context
n/a
The text was updated successfully, but these errors were encountered: