Skip to content

Conversation

@sbordet
Copy link
Contributor

@sbordet sbordet commented Sep 11, 2025

Fixes handling of an Expect header with an invalid value (one that is not 100-Continue).

For HTTP/1 replaced direct call to badMessage() with throwing, so that the request is not handled in HttpConnection.onFillable().

HTTP/2 and HTTP/3 did not handle the case, so the handling was added.

…ssageException: 417.

Fixes handling of an `Expect` header with an invalid value (one that is not 100-Continue).

For HTTP/1 replaced direct call to `badMessage()` with throwing, so that the request is not handled in `HttpConnection.onFillable()`.

HTTP/2 and HTTP/3 did not handle the case, so the handling was added.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
@sbordet sbordet merged commit 391a544 into jetty-12.0.x Sep 13, 2025
10 checks passed
@sbordet sbordet deleted the fix/jetty-12.0.x/13583/handle-invalid-expect branch September 13, 2025 09:07
@sbordet sbordet moved this from 👀 In review to ✅ Done in Jetty 12.0.28 - FROZEN Sep 24, 2025
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.

NPE in WriteFlusher after org.eclipse.jetty.http.BadMessageException: 417

3 participants