Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-1872

NPE thrown by SimpleXML ACLs when consume permission is missing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • M4, 0.5
    • 0.6
    • Broker-J
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              robbie Robbie Gemmell
              ritchiem Martin Ritchie
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: