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 — Add HpackDecoder test for non-token HTTP/2 header names by normanmaurer · Pull Request #17979 · netty/netty Conversation
Member
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.
|
There was an error while loading. Please reload this page.
✅ All tests passed ✅🏷️ Commit: 1ef3c9b 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.
|
Auto-port PR for 5.0: #17988 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Auto-port PR for 4.1: #17992 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
#17992) Auto-port of #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 #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]>
#17988) Auto-port of #17979 to 5.0 Cherry-picked commit: 345af11 --- Motivation: `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. Co-authored-by: Norman Maurer <[email protected]>
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.