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

Simplified and fixed TryPathsHandler. #9792

Merged
merged 1 commit into from
May 23, 2023

Conversation

sbordet
Copy link
Contributor

@sbordet sbordet commented May 23, 2023

Improved logging and variable naming in related classes.

Previously, a 404 received from a child handler would have resulted in an infinite loop trying to write the 404 response. However, TryPathsHandler should just delegate to other handlers.

Replaced the IteratingCallback loop with a simple for loop over the paths to try, returning if the path was handled by a child Handler.

Improved logging and variable naming in related classes.

Previously, a 404 received from a child handler would have resulted in an infinite loop trying to write the 404 response. However, `TryPathsHandler` should just delegate to other handlers.

Replaced the `IteratingCallback` loop with a simple `for` loop over the paths to try, returning if the path was handled by a child `Handler`.

Signed-off-by: Simone Bordet <[email protected]>
@sbordet sbordet requested review from joakime and lorban May 23, 2023 08:37
@sbordet sbordet merged commit e0ff8cd into jetty-12.0.x May 23, 2023
@sbordet sbordet deleted the fix/jetty-12-simplify-trypathshandler branch May 23, 2023 19:26
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.

2 participants