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
custom content-length header is not used with resteasy-reactive #26599
Comments
/cc @FroMage, @geoand, @stuartwdouglas |
Can you try with |
@geoand same exception |
Interesting because this looks exactly like the test I added in #26467 |
@geoand It also works for me with a lower number of uuid copies. For 200 the file downloads, for 500 I get the exception from above. |
Interesting, I'll have a look. |
Can you try out #26601 please? I tried it with your reproducer and it worked. |
Fix race condition in content-length header setting
Fixes: quarkusio#26599 (cherry picked from commit 0c28160)
Describe the bug
I have following resource:
Thanks to #26464, the content-length I set should now be used in the request.
However I get the exception from below upon calling the resource.
The request never finishes.
If I remove content-length, quarkus correctly adds Transfer-Encoding: chunked again. This bug is therefore at least not a regression.
I debugged
Http1xServerResponse#write(ByteBuf chunk, PromiseInternal<Void> promise)
. The headers map is completly empty:Expected behavior
The content-length header I set gets used.
Actual behavior
How to Reproduce?
Reproducer:
transfer-encoding-clash.zip
Output of
uname -a
orver
Microsoft Windows [Version 10.0.19044.1766]
Output of
java -version
openjdk 18.0.1 2022-04-19 OpenJDK Runtime Environment Temurin-18.0.1+10 (build 18.0.1+10) OpenJDK 64-Bit Server VM Temurin-18.0.1+10 (build 18.0.1+10, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.10.2.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537) Maven home: C:\eclipse\tools\java\maven Java version: 18.0.1, vendor: Eclipse Adoptium, runtime: C:\eclipse\tools\java\18 Default locale: de_DE, platform encoding: UTF-8 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
Additional information
No response
The text was updated successfully, but these errors were encountered: