Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-2671

Hard-coded search in LegacyLDAPSecuritySettingPlugin listener

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.12.0
    • None
    • None

    Description

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

      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)
      

      Attachments

        Issue Links

          Activity

            People

              jbertram Justin Bertram
              jbertram Justin Bertram
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m