[ https://issues.apache.org/jira/browse/ARTEMIS-4267?focusedWorklogId=860414&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-860414 ]
ASF GitHub Bot logged work on ARTEMIS-4267: ------------------------------------------- Author: ASF GitHub Bot Created on: 03/May/23 18:02 Start Date: 03/May/23 18:02 Worklog Time Spent: 10m Work Description: jbertram commented on code in PR #4461: URL: https://github.com/apache/activemq-artemis/pull/4461#discussion_r1184077685 ########## artemis-server/src/main/java/org/apache/activemq/artemis/spi/core/security/ActiveMQJAASSecurityManager.java: ########## @@ -141,8 +141,10 @@ private Subject getAuthenticatedSubject(final String user, try { lc.login(); } catch (LoginException e) { - Throwable rootCause = ExceptionUtil.getRootCause(e); + Throwable rootCause = ExceptionUtils.getRootCause(e); if (rootCause instanceof NoCacheLoginException) { + // preserve the original exception for logging + rootCause.initCause(e); Review Comment: Refactor done. Issue Time Tracking ------------------- Worklog Id: (was: 860414) Time Spent: 1h 10m (was: 1h) > Original exception lost for NoCacheLoginException > ------------------------------------------------- > > Key: ARTEMIS-4267 > URL: https://issues.apache.org/jira/browse/ARTEMIS-4267 > Project: ActiveMQ Artemis > Issue Type: Bug > Reporter: Justin Bertram > Assignee: Justin Bertram > Priority: Major > Fix For: 2.29.0 > > Time Spent: 1h 10m > Remaining Estimate: 0h > > When skipping the authentication cache the _original_ exception is not logged. -- This message was sent by Atlassian Jira (v8.20.10#820010)