Skip to content

Auto-port 4.1: Reject incomplete PUSH_PROMISE request headers when validateRequiredPseudoHeaders is enabled - #17582

Merged
normanmaurer merged 2 commits into
4.1from
auto-port-pr-17460-to-4.1
Sep 22, 2026
Merged

normanmaurer merged 2 commits into
4.1from
auto-port-pr-17460-to-4.1

Conversation

@netty-project-bot

Copy link
Copy Markdown
Contributor

Auto-port of #17460 to 4.1
Cherry-picked commit: 2436f95


Motivation:

RFC 9113, 8.4.1 requires a PUSH_PROMISE field block to carry a complete
set of request pseudo-header fields, and mandates a PROTOCOL_ERROR on
the promised stream if it does not. DefaultHttp2ConnectionDecoder never
performed this check, so even with validateRequiredPseudoHeaders
enabled an empty/incomplete promised request was accepted and the
promised stream reserved.

Modifications:

  • Validate push promise headers when enabled
  • Add unit tests

Result:

Fixes #17439

…seudoHeaders is enabled (#17460)

Motivation:

RFC 9113, 8.4.1 requires a PUSH_PROMISE field block to carry a complete
set of request pseudo-header fields, and mandates a PROTOCOL_ERROR on
the promised stream if it does not. DefaultHttp2ConnectionDecoder never
performed this check, so even with validateRequiredPseudoHeaders
enabled an empty/incomplete promised request was accepted and the
promised stream reserved.

Modifications:

- Validate push promise headers when enabled
- Add unit tests

Result:

Fixes #17439

(cherry picked from commit 2436f95)
@testlens-app

testlens-app Bot commented Sep 22, 2026

Copy link
Copy Markdown

✅ All tests passed ✅

🏷️ Commit: 781c3bb
▶️ Tests: 387861 executed
⚪️ Checks: 17/17 completed


Learn more about TestLens at testlens.app/docs.

@normanmaurer
normanmaurer merged commit a64576f into 4.1 Sep 22, 2026
18 checks passed
@normanmaurer
normanmaurer deleted the auto-port-pr-17460-to-4.1 branch September 22, 2026 11:17
lltopk pushed a commit to lltopk/netty that referenced this pull request Oct 24, 2026
…lidateRequiredPseudoHeaders is enabled (netty#17582)

Auto-port of netty#17460 to 4.1
Cherry-picked commit: 2436f95

---
Motivation:

RFC 9113, 8.4.1 requires a PUSH_PROMISE field block to carry a complete
set of request pseudo-header fields, and mandates a PROTOCOL_ERROR on
the promised stream if it does not. DefaultHttp2ConnectionDecoder never
performed this check, so even with validateRequiredPseudoHeaders
enabled an empty/incomplete promised request was accepted and the
promised stream reserved.

Modifications:

- Validate push promise headers when enabled
- Add unit tests

Result:

Fixes netty#17439

---------

Co-authored-by: Norman Maurer <[email protected]>
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.

2 participants