Skip to content

Conversation

@gregw
Copy link
Contributor

@gregw gregw commented Oct 10, 2025

Fix #13685 by handling zero length resources

Fix #14685 by handling zero length resources
Fix #14685 by handling zero length resources
sbordet
sbordet previously approved these changes Oct 10, 2025
@gregw gregw requested review from lorban and sbordet October 11, 2025 21:39
@sbordet
Copy link
Contributor

sbordet commented Oct 13, 2025

@gregw lots of TODO in this PR, still a work in progress?

Signed-off-by: Lachlan Roberts <[email protected]>
Signed-off-by: Lachlan Roberts <[email protected]>
@joakime joakime moved this from 🏗 In progress to 👀 In review in Jetty 12.1.4 Oct 22, 2025
Copy link
Contributor

@lorban lorban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please review FileMappingHttpContentFactory too?

@gregw gregw requested review from lorban and sbordet October 28, 2025 04:52
@gregw gregw requested a review from sbordet October 28, 2025 11:12
@gregw
Copy link
Contributor Author

gregw commented Oct 28, 2025

@sbordet I don't really agree that we should not modify the the chunk at all. But I made the changes anyway, as it should be cheap with reference counting.

sbordet
sbordet previously approved these changes Oct 28, 2025
lorban
lorban previously approved these changes Oct 28, 2025
Copy link
Contributor

@lorban lorban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added missing range checks in HttpContent.writeTo() implementations.

LGTM, but please review my (rather small) changes before merging.

@lorban lorban requested a review from sbordet October 28, 2025 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 👀 In review

Development

Successfully merging this pull request may close these issues.

Infinite loop on Content.copy() with Content.Source.from(... , Path, ) when Path has size 0.

5 participants