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

Check Netty validation of headers before processing request #1827

Merged
merged 1 commit into from
May 21, 2020
Merged

Check Netty validation of headers before processing request #1827

merged 1 commit into from
May 21, 2020

Conversation

tjquinno
Copy link
Member

@tjquinno tjquinno commented May 19, 2020

Resolves #1262

Netty performs header validation and records the result in a DecoderResult in the request. The Netty validation includes checking header names for invalid characters.

This PR adds logic to Helidon to check the DecoderResult before proceeding with the processing of the request. Most clients check for valid headers this but it's not guaranteed.

Signed-off-by: tim.quinn@oracle.com tim.quinn@oracle.com

Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
@tjquinno tjquinno self-assigned this May 19, 2020
@tjquinno tjquinno added this to the 2.0.0 milestone May 19, 2020
@tjquinno tjquinno changed the title Add server-side check of header names for validity Check Netty validation of headers before processing request May 21, 2020
@tjquinno tjquinno merged commit b32feb0 into helidon-io:master May 21, 2020
@tjquinno tjquinno deleted the bad-header branch May 21, 2020 14:14
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.

Bad header names not handled
3 participants