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 for Spring6 specific servlet attribute for advice-handled exception #1538

Merged
merged 1 commit into from Oct 9, 2023

Conversation

jtduffy
Copy link
Contributor

@jtduffy jtduffy commented Oct 5, 2023

Resolves #1393

As of Spring 6, when controller advice is used for controller exception handling, the caught exception is now stored in the servlet attribute map with the org.springframework.web.servlet.DispatcherServlet.EXCEPTION key. Other exceptions are still present in the jakarta.servlet.error.exception key.

With this change, exceptions now report properly to NR.

Screenshot 2023-10-05 at 11 15 45 AM

@jtduffy jtduffy requested a review from a team October 5, 2023 15:49
@jtduffy jtduffy merged commit 1b9bd7f into main Oct 9, 2023
103 checks passed
@jtduffy jtduffy deleted the 1393-controller-advice-errors branch October 9, 2023 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Spring 6 (Boot3) does not report underlying exception/stacktrace when a @RestControllerAdvice class is used
2 participants