[
https://issues.apache.org/jira/browse/QPID-1872?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marnie McCormack resolved QPID-1872.
------------------------------------
Resolution: Fixed
Changes look ok, tests passing
> NPE thrown by SimpleXML ACLs when consume permission is missing
> ---------------------------------------------------------------
>
> Key: QPID-1872
> URL: https://issues.apache.org/jira/browse/QPID-1872
> Project: Qpid
> Issue Type: Bug
> Components: Java Broker
> Affects Versions: M4, 0.5
> Reporter: Martin Ritchie
> Assignee: Robbie Gemmell
> Fix For: 0.6
>
>
> Summary:
> When attempting to consume from a queue without permission the broker will
> throw a NPE if the user does not have any create permissions.
> 2009-03-19 13:52:56,478 ERROR [pool-2-thread-2]
> protocol.AMQMinaProtocolSession (AMQMinaProtocolSession.java:365) -
> Unexpected exception while processing frame. Closing connection.
> java.lang.NullPointerException
> at
> org.apache.qpid.server.security.access.PrincipalPermissions.authorise(PrincipalPermissions.java:465)
> at
> org.apache.qpid.server.security.access.plugins.SimpleXML.authorise(SimpleXML.java:309)
> at
> org.apache.qpid.server.handler.BasicConsumeMethodHandler.methodReceived(BasicConsumeMethodHandler.java:101)
> at
> org.apache.qpid.server.handler.ServerMethodDispatcherImpl.dispatchBasicConsume(ServerMethodDispatcherImpl.java:137)
> at
> org.apache.qpid.framing.amqp_0_9.BasicConsumeBodyImpl.execute(BasicConsumeBodyImpl.java:187)
> at
> org.apache.qpid.server.state.AMQStateManager.methodReceived(AMQStateManager.java:204)
> at
> org.apache.qpid.server.protocol.AMQMinaProtocolSession.methodFrameReceived(AMQMinaProtocolSession.java:295)
> at
> org.apache.qpid.framing.AMQMethodBodyImpl.handle(AMQMethodBodyImpl.java:93)
> at
> org.apache.qpid.server.protocol.AMQMinaProtocolSession.frameReceived(AMQMinaProtocolSession.java:
> This happens when the user that is used in the connection does not have
> consume privilege.
--
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]