You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Robbie Gemmell (JIRA)" <ji...@apache.org> on 2015/02/23 18:40:12 UTC
[jira] [Created] (AMQ-5608) connecting with username and
SimpleAuthenticationPlugin defined without any users leads to NPE
Robbie Gemmell created AMQ-5608:
-----------------------------------
Summary: connecting with username and SimpleAuthenticationPlugin defined without any users leads to NPE
Key: AMQ-5608
URL: https://issues.apache.org/jira/browse/AMQ-5608
Project: ActiveMQ
Issue Type: Bug
Components: Broker
Affects Versions: 5.11.1
Reporter: Robbie Gemmell
Fix For: 5.12.0
If a SimpleAuthenticationPlugin is defined in the configuration without any users element, then when a client which does supply a username attempts to connect an NPE occurs in the broker.
E.g, defining broker config as:
{noformat}
<simpleAuthenticationPlugin anonymousAccessAllowed="true" />
{noformat}
And trying to log in, results in:
{noformat}
java.lang.NullPointerException
at org.apache.activemq.security.SimpleAuthenticationBroker.addConnection(SimpleAuthenticationBroker.java:83)
...
<snip>
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)