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

Request routing does not propagate throwable from next(Throwable) #6550

Closed
tomas-langer opened this issue Apr 4, 2023 · 1 comment · Fixed by #6699
Closed

Request routing does not propagate throwable from next(Throwable) #6550

tomas-langer opened this issue Apr 4, 2023 · 1 comment · Fixed by #6699
Assignees
Labels
3.x Issues for 3.x version branch bug Something isn't working P2 team-fix This issue is available for team members to be fixed. Should not require deep knowledge of Helidon webserver
Milestone

Comments

@tomas-langer
Copy link
Member

tomas-langer commented Apr 4, 2023

When next(Throwable) is called, the implementation class RequestRouting calls checkNexted() without a parameter.
As a result, if checkNexted() fails, we lose the original throwable.
The fix is to call checkNexted(Throwable) instead.

This happens if you call next() and next(someThrowable) -> the someThrowable is lost

@tomas-langer tomas-langer added bug Something isn't working webserver 3.x Issues for 3.x version branch team-fix This issue is available for team members to be fixed. Should not require deep knowledge of Helidon labels Apr 4, 2023
@m0mus m0mus added the P2 label Apr 6, 2023
@romain-grecourt
Copy link
Contributor

romain-grecourt commented Apr 6, 2023

req.next();
req.next(new Exception("booh"));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.x Issues for 3.x version branch bug Something isn't working P2 team-fix This issue is available for team members to be fixed. Should not require deep knowledge of Helidon webserver
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants