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

Fix response truncation #22996

Merged
merged 1 commit into from
Jan 19, 2022
Merged

Fix response truncation #22996

merged 1 commit into from
Jan 19, 2022

Conversation

stuartwdouglas
Copy link
Member

If the response is an exact multiple of the buffer size it is being
truncated.

The existing code based on calculating the number of buffers has other issues as well, including:

  • not handling already buffered data
  • The remainder can be written out of order, as it is written to the buffer immediately

Fixes #22973

If the response is an exact multiple of the buffer size it is being
truncated.

Fixes quarkusio#22973
@stuartwdouglas stuartwdouglas requested a review from geoand January 19, 2022 05:37
@geoand geoand added triage/backport? triage/waiting-for-ci Ready to merge when CI successfully finishes labels Jan 19, 2022
@quarkus-bot
Copy link

quarkus-bot bot commented Jan 19, 2022

Failing Jobs - Building 6a7a0f7

Status Name Step Failures Logs Raw logs
JVM Tests - JDK 11 Build Failures Logs Raw logs
✔️ JVM Tests - JDK 17

Full information is available in the Build summary check run.

Failures

⚙️ JVM Tests - JDK 11 #

- Failing: extensions/security-jpa/deployment 

📦 extensions/security-jpa/deployment

io.quarkus.security.jpa.NaturalIdConfigurationTest.testJaxrsPathUserRoleSuccess - More details - Source on GitHub

java.lang.AssertionError: 
1 expectation failed.
Expected status code <200> but was <401>.

@famod
Copy link
Member

famod commented Jan 19, 2022

That one test failure isn't related (passes on my local machine).

@famod famod merged commit 5d653f8 into quarkusio:main Jan 19, 2022
@quarkus-bot quarkus-bot bot added this to the 2.8 - main milestone Jan 19, 2022
@quarkus-bot quarkus-bot bot removed the triage/waiting-for-ci Ready to merge when CI successfully finishes label Jan 19, 2022
@gsmet gsmet modified the milestones: 2.8 - main, 2.6.3.Final Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JSON response may be truncated at 8192 bytes boundary
4 participants