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

Add a specific test for optional whitespace in HTTP headers #13486

Merged
merged 4 commits into from Jul 17, 2023

Conversation

chrisvest
Copy link
Contributor

Motivation:
Since we made header value validation more strict in 4.1.84, we've gotten the occasional issue reported that whitespace isn't handled correctly.

Modification:
Add a test that stresses the optional whitespace decoding of HTTP headers, because I think we didn't have one already.
Also include a javadoc comment with relevant RFC references.

Result:
This proves that we handle optional whitespace correctly when we decode HTTP headers.

This proves that we handle optional whitespace correctly when we decode HTTP headers.
Copy link
Member

@normanmaurer normanmaurer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one nit.

chrisvest and others added 2 commits July 13, 2023 13:44
Co-authored-by: Norman Maurer <norman_maurer@apple.com>
Co-authored-by: Norman Maurer <norman_maurer@apple.com>
@normanmaurer normanmaurer merged commit 85ddc97 into netty:4.1 Jul 17, 2023
14 checks passed
@normanmaurer
Copy link
Member

@chrisvest can you port to main as well ?

@normanmaurer normanmaurer added this to the 4.1.95.Final milestone Jul 17, 2023
chrisvest added a commit that referenced this pull request Jul 17, 2023
Motivation:
Since we made header value validation more strict in 4.1.84, we've
gotten the occasional issue reported that whitespace isn't handled
correctly.

Modification:
Add a test that stresses the optional whitespace decoding of HTTP
headers, because I think we didn't have one already.
Also include a javadoc comment with relevant RFC references.

Result:
This proves that we handle optional whitespace correctly when we decode
HTTP headers.

---------

Co-authored-by: Norman Maurer <norman_maurer@apple.com>
@chrisvest chrisvest deleted the 41-http-ows branch July 17, 2023 14:58
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

2 participants