You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (Jira)" <ji...@apache.org> on 2020/03/20 19:21:00 UTC

[jira] [Created] (ARTEMIS-2671) Hard-coded search in LegacyLDAPSecuritySettingPlugin listener

Justin Bertram created ARTEMIS-2671:
---------------------------------------

             Summary: 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


The {{javax.naming.event.ObjectChangeListener}} implementation for {{org.apache.activemq.artemis.core.server.impl.LegacyLDAPSecuritySettingPlugin}} has a hard-code 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)