Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[balsa] Add tests to document behavior when header value contains CR or LF. #34088

Merged
merged 4 commits into from May 14, 2024

Conversation

bencebeky
Copy link
Contributor

These characters are invalid according to RFC9110 Section 5.5 [1].
Either the message must be rejected, or the characters replaced by SP
according to the RFC. These tests confirm that both http-parser and
BalsaParser indeed either reject the message or remove the forbidden
characters, though neither of them seem to insert a SP in their place.

Balsa implementation tracking issue: #21245

[1] https://www.rfc-editor.org/rfc/rfc9110.html#name-field-values

Commit Message: Add tests to document behavior when header value contains CR or LF.
Additional Description:
Risk Level: low, test-only change
Testing: test/common/http/http1:codec_impl_test
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: n/a

…re().

Signed-off-by: Bence Béky <bnc@google.com>
These characters are invalid according to RFC9110 Section 5.5 [1].
Either the message must be rejected, or the characters replaced by SP
according to the RFC. These tests confirm that both http-parser and
BalsaParser indeed either reject the message or remove the forbidden
characters, though neither of them seem to insert a SP in their place.

[1] https://www.rfc-editor.org/rfc/rfc9110.html#name-field-values

Signed-off-by: Bence Béky <bnc@google.com>
Copy link

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #34088 was opened by bencebeky.

see: more, trace.

Signed-off-by: Bence Béky <bnc@google.com>
Signed-off-by: Bence Béky <bnc@google.com>
@bencebeky
Copy link
Contributor Author

/assign @yanavlasov

@bencebeky bencebeky marked this pull request as ready for review May 14, 2024 15:54
@yanavlasov yanavlasov merged commit ba3697e into envoyproxy:main May 14, 2024
51 checks passed
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.

None yet

3 participants