[
https://issues.apache.org/jira/browse/LOG4J2-2551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16809664#comment-16809664
]
Andrei Ivanov commented on LOG4J2-2551:
---------------------------------------
The proposed PR should fix this issue, and \{[AuditCatalogManager.getEvent}}
gets called with the original name, after which the {{{{AuditMessage}}}} is
constructed with the normalized name.
> Event starting with upper case not found by AbstractEventLogger.logEvent
> ------------------------------------------------------------------------
>
> Key: LOG4J2-2551
> URL: https://issues.apache.org/jira/browse/LOG4J2-2551
> Project: Log4j 2
> Issue Type: Bug
> Components: Log4j-Audit
> Affects Versions: Log4j-Audit 1.0.1
> Reporter: Andrei Ivanov
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> As a consequence of my changes for LOG4J2-2442, I've introduced a regression
> when the name of the event starts with an upper case letter 😫
> As a fix, I'm not sure about the approach:
> 1. Move the normalization of the name when constructing the {{AuditMessage}},
> from line
> [94|https://github.com/apache/logging-log4j-audit/blob/master/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/AbstractEventLogger.java#L94]
> to
> [106|https://github.com/apache/logging-log4j-audit/blob/master/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/AbstractEventLogger.java#L106]
> 2. Remove name normalization completely and use the exact name used in the
> event definition.
> I actually think I like option 2 better.
> What do you think?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)