[Java Broker] ACL Create permission can throw NPE preventing broker startup
---------------------------------------------------------------------------

                 Key: QPID-1801
                 URL: https://issues.apache.org/jira/browse/QPID-1801
             Project: Qpid
          Issue Type: Bug
          Components: Java Broker
    Affects Versions: M4, M3
         Environment: Test
            Reporter: Marnie McCormack
            Assignee: Marnie McCormack
            Priority: Blocker
             Fix For: 0.5


In PrincipalPermissions the processing of CREATE ACLs can throw an NPE and 
prevent broker startup in this statement:

 if (exchangeName != null)
                    {
                        queue.put(exchangeName, routingKey);
                    }

The routingKey is null as a result of the incoming create parameters including 
a null routingKey in the array, which gets passed on from this previous 
statement:

AMQShortString routingKey = parameters.length > 3 ? (AMQShortString) 
parameters[3] : queueName;

The routingKey is present in the size 4 array, but is unhappily null.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to