Repository navigation
test(h1): match the forged Content-Length trailer on its field line - #1767
Merged
Merged
Conversation
Follow-up to #1707. `a_chunked_request_trailer_section_loses_its_forbidden_fields` rejected any serialized request containing the bare substring `6666`. The random `traceparent` ids synthesised under the `opentelemetry` feature, and the random request ids, can carry it, so the test failed about once in 1,500 runs. The assertion now rejects the case-insensitive `content-length: 6666` field line, alongside the existing `6.6.6.6` check. Test only. Signed-off-by: Florentin Dubois <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #1707.
a_chunked_request_trailer_section_loses_its_forbidden_fieldsrejected any serialized request containing the bare substring6666. The randomtraceparentids synthesised under theopentelemetryfeature, and the random request ids, can carry it, so the test failed about once in 1,500 runs (seen in thefipsCI cell).The assertion now rejects the case-insensitive
content-length: 6666field line, alongside the existing6.6.6.6check. Test only; CHANGELOG updated.Test
opentelemetryenabled: 0 failures (unfixed test: 3–4 failures per 5000, each with6666in the trace or span id).Content-Lengthtrailer, the anchored assertion fails.cargo +nightly fmt --check,cargo +1.93.1 clippy --all-features --all-targets --locked -- -D warnings,cargo doc --all-features --no-depswith-D warnings,cargo test -p sozu-lib --all-features --lib,cargo +nightly fuzz build, and the fourcheck_doc_citations.pymodes pass.