GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — Auto-port 4.1: Add HpackDecoder test for non-token HTTP/2 header names by netty-project-bot · Pull Request #17992 · netty/netty Conversation
Contributor
Auto-port of #17979 to 4.1 Motivation:
Modification: Add Result: Rejection of non-token header names during HPACK decoding is covered by a
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsMotivation: `DefaultHttp2Headers` rejects header names that are not valid RFC 7230 tokens (and upper-case names) since #16762. The existing tests only cover `DefaultHttp2Headers.add(...)`, so nothing verifies that such names received on the wire are rejected while HPACK-decoding a header block. Modification: Add `HpackDecoderTest.receivedNonTokenHeaderNameIsRejected`. It encodes header names containing CR/LF, NUL, `:`, `;`, SP, a non-ASCII byte and upper-case characters with a non-validating `DefaultHttp2Headers`, and asserts that decoding with validation enabled fails with a `StreamException` and `PROTOCOL_ERROR`. Result: Rejection of non-token header names during HPACK decoding is covered by a regression test. (cherry picked from commit 345af11)
|
There was an error while loading. Please reload this page.
✅ All tests passed ✅🏷️ Commit: 83445a9 Learn more about TestLens at testlens.app/docs. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
netty#17992) Auto-port of netty#17979 to 4.1 Cherry-picked commit: 345af11 --- Motivation: `DefaultHttp2Headers` rejects header names that are not valid RFC 7230 tokens (and upper-case names) since netty#16762. The existing tests only cover `DefaultHttp2Headers.add(...)`, so nothing verifies that such names received on the wire are rejected while HPACK-decoding a header block. Modification: Add `HpackDecoderTest.receivedNonTokenHeaderNameIsRejected`. It encodes header names containing CR/LF, NUL, `:`, `;`, SP, a non-ASCII byte and upper-case characters with a non-validating `DefaultHttp2Headers`, and asserts that decoding with validation enabled fails with a `StreamException` and `PROTOCOL_ERROR`. Result: Rejection of non-token header names during HPACK decoding is covered by a regression test. Co-authored-by: Norman Maurer <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.