[ 
https://issues.apache.org/jira/browse/ARTEMIS-2671?focusedWorklogId=408313&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-408313
 ]

ASF GitHub Bot logged work on ARTEMIS-2671:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 23/Mar/20 21:02
            Start Date: 23/Mar/20 21:02
    Worklog Time Spent: 10m 
      Work Description: asfgit commented on pull request #3038: ARTEMIS-2671 
NPE in LDAP security plugin listener
URL: https://github.com/apache/activemq-artemis/pull/3038
 
 
   
 
----------------------------------------------------------------
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:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 408313)
    Time Spent: 20m  (was: 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: 20m
>  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)

Reply via email to