Revert "ARTEMIS-3902 Adding reason to Audit Security Message"

This reverts commit db8f530256.
This commit is contained in:
Clebert Suconic 2022-07-22 11:37:46 -04:00
parent db8f530256
commit 55865ab4b4
2 changed files with 5 additions and 5 deletions

View File

@ -2267,13 +2267,13 @@ public interface AuditLogger extends BasicLogger {
void handleManagementMessage2(String user, Object source, Object... args);
static void securityFailure(Exception cause, String reason) {
BASE_LOGGER.securityFailure(getCaller(), reason, cause);
static void securityFailure(Exception cause) {
BASE_LOGGER.securityFailure(getCaller(), cause);
}
@LogMessage(level = Logger.Level.INFO)
@Message(id = 601264, value = "User {0} gets security check failure, reason={1}", format = Message.Format.MESSAGE_FORMAT)
void securityFailure(String user, String reason, @Cause Throwable cause);
@Message(id = 601264, value = "User {0} gets security check failure", format = Message.Format.MESSAGE_FORMAT)
void securityFailure(String user, @Cause Throwable cause);
static void createCoreConsumer(Object source, Subject user, String remoteAddress, Object... args) {

View File

@ -290,7 +290,7 @@ public class SecurityStoreImpl implements SecurityStore, HierarchicalRepositoryC
} else {
ex = ActiveMQMessageBundle.BUNDLE.userNoPermissionsQueue(session.getUsername(), checkType, bareQueue, bareAddress);
}
AuditLogger.securityFailure(ex, ex.getMessage());
AuditLogger.securityFailure(ex);
throw ex;
}