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

Fixes #10919 - EE10 multipart parsing may include '\r' at the front under certain conditions #10921

Merged
merged 4 commits into from
Nov 29, 2023

Conversation

sbordet
Copy link
Contributor

@sbordet sbordet commented Nov 26, 2023

Setting MultiPart.Parser.crContent=false when the boundary is matched. This is necessary when a read chunk ends with \r\n, and then matches the boundary on the next read chunk, and avoids to emit the CR as part content.

…nder certain conditions.

Setting MultiPart.Parser.crContent=false when the boundary is matched.
This is necessary when a read chunk ends with \r\n, and then matches the boundary on the next read chunk, and avoids to emit the CR as part content.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
lorban
lorban previously approved these changes Nov 27, 2023
Updates after review.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
@sbordet sbordet requested a review from lorban November 27, 2023 13:10
@joakime joakime changed the title Fixes #10919 - EE10 multipart parsing may include '\r' at the front u… Fixes #10919 - EE10 multipart parsing may include '\r' at the front under certain conditions Nov 27, 2023
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
lorban
lorban previously approved these changes Nov 28, 2023
…t index 0 in the next chunk.

The CR should not be emitted as content, and crContent reset to false.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
@sbordet sbordet merged commit a15a4b0 into jetty-12.0.x Nov 29, 2023
7 checks passed
@sbordet sbordet deleted the fix/jetty-12-10919-multipart-extra-cr branch November 29, 2023 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

EE10 multipart parsing may include '\r' at the front under certain conditions
3 participants