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

ARTEMIS-4267 original exception lost for NoCacheLoginException #4461

Merged
merged 1 commit into from May 8, 2023

Conversation

jbertram
Copy link
Contributor

When skipping the authentication cache the original exception is not logged.

This commit ensures the original exception is logged and adopts the ExceptionUtils class from Apache Commons Lang in lieu of the previous custom implementation.

@jbertram jbertram marked this pull request as draft May 3, 2023 16:21
@jbertram jbertram force-pushed the ARTEMIS-4267 branch 3 times, most recently from e36fc8d to 5de99b8 Compare May 3, 2023 17:58
@jbertram jbertram marked this pull request as ready for review May 3, 2023 18:02
Copy link
Member

@brusdev brusdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I'm missing something but changing the cause of a thrown exception is confusing

When skipping the authentication cache details for the original
exception are not logged.

This commit ensures these details are logged and adopts the
ExceptionUtils class from Apache Commons Lang in lieu of the previous
custom implementation.
@brusdev brusdev merged commit c2bada6 into apache:main May 8, 2023
6 checks passed
@rvais
Copy link

rvais commented May 29, 2023

Looks good, I just need to take a look at the tests themselves more closely, I will do so probably tomorrow.

@jbertram jbertram deleted the ARTEMIS-4267 branch September 12, 2023 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants