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

Skip error routes when initial processing of malformed request fails #11161

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

yawkat
Copy link
Member

@yawkat yawkat commented Sep 6, 2024

When netty reports a decode failure, we run the status routes and error response processor. If that fails, we would run onError. onError will run filters which can occlude the error because the filters will not see the full headers (decoding failed after all) and may e.g. fail authentication.

This change removes the onError fallback from the decode failure branch.

…ails

When netty reports a decode failure, we run the status routes and error response processor. If *that* fails, we would run onError. onError will run filters which can occlude the error because the filters will not see the full headers (decoding failed after all) and may e.g. fail authentication.

This change removes the onError fallback from the decode failure branch.
@yawkat yawkat added the type: bug Something isn't working label Sep 6, 2024
@yawkat yawkat added this to the 4.6.5 milestone Sep 6, 2024
Copy link

sonarcloud bot commented Sep 6, 2024

@graemerocher graemerocher changed the title Don't run error routes when initial processing of malformed request f… Skip error routes when initial processing of malformed request fails Sep 7, 2024
@graemerocher graemerocher merged commit 2f1dc37 into 4.6.x Sep 9, 2024
19 checks passed
@graemerocher graemerocher deleted the decode-error branch September 9, 2024 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants