[
https://issues.apache.org/jira/browse/ARTEMIS-2671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17065093#comment-17065093
]
ASF subversion and git services commented on ARTEMIS-2671:
----------------------------------------------------------
Commit 3107535a324448909149c245b26ca4085bb6e42b in activemq-artemis's branch
refs/heads/master from Justin Bertram
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=3107535 ]
ARTEMIS-2671 NPE in LDAP security plugin listener
To get the name of the destination use the relative Rdn position rather than a
strict match of "uid". Also, improve logging.
> Hard-coded search in LegacyLDAPSecuritySettingPlugin listener
> -------------------------------------------------------------
>
> Key: ARTEMIS-2671
> URL: https://issues.apache.org/jira/browse/ARTEMIS-2671
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Reporter: Justin Bertram
> Assignee: Justin Bertram
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> The {{javax.naming.event.ObjectChangeListener}} implementation for
> {{org.apache.activemq.artemis.core.server.impl.LegacyLDAPSecuritySettingPlugin}}
> has a hard-coded search for {{uid}}. This can cause a
> {{NullPointerException}}, e.g.:
> {noformat}
> Exception in thread "Thread-12" java.lang.NullPointerException
> at
> java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
> at
> org.apache.activemq.artemis.core.settings.impl.HierarchicalObjectRepository.getMatch(HierarchicalObjectRepository.java:207)
> at
> org.apache.activemq.artemis.core.server.impl.LegacyLDAPSecuritySettingPlugin.objectRemoved(LegacyLDAPSecuritySettingPlugin.java:490)
> at
> org.apache.activemq.artemis.core.server.impl.LegacyLDAPSecuritySettingPlugin.objectChanged(LegacyLDAPSecuritySettingPlugin.java:543)
> at
> org.apache.activemq.artemis.core.server.impl.LegacyLDAPSecuritySettingPlugin$LDAPNamespaceChangeListener.objectChanged(LegacyLDAPSecuritySettingPlugin.java:581)
> at javax.naming.event.NamingEvent.dispatch(NamingEvent.java:295)
> at com.sun.jndi.ldap.EventQueue.run(EventQueue.java:147)
> at java.lang.Thread.run(Thread.java:748)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)