[
https://issues.apache.org/jira/browse/ARTEMIS-2671?focusedWorklogId=407196&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-407196
]
ASF GitHub Bot logged work on ARTEMIS-2671:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 20/Mar/20 19:34
Start Date: 20/Mar/20 19:34
Worklog Time Spent: 10m
Work Description: jbertram commented on pull request #3038: ARTEMIS-2671
NPE in LDAP security plugin listener
URL: https://github.com/apache/activemq-artemis/pull/3038
To get the name of the destination use the relative Rdn position rather than
a
strict match of "uid". Also, improve logging.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 407196)
Remaining Estimate: 0h
Time Spent: 10m
> 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)