Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-5233

MQTT broker with ACL, try to connect using bad credential sends first connection event and next disconnect event to client

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.9.1
    • 5.11.0
    • Broker
    • Windows 7 - 64 bit
      Eclipse Kepler
      JDK 1.7
      Spring 4.0
      MosquittoLib (C) on iOS

    Description

      Configure broker with :

      <amq:broker useJmx="false" persistent="false">
      <amq:transportConnectors>
      <amq:transportConnector name="mqtt" uri="${jms.brokerurl}">
      </amq:transportConnectors>
      <amq:networkConnectors/>

      <amq:plugins>
      <amq:simpleAuthenticationPlugin>
      <amq:users>
      <amq:authenticationUser username="test" password="test" groups="admins,guests,users" />
      </amq:users>
      </amq:simpleAuthenticationPlugin>
      <amq:authorizationPlugin>
      <amq:map>
      <amq:authorizationMap>
      <amq:authorizationEntries>
      <amq:authorizationEntry queue=">" read="admins" write="admins" admin="admins" />
      <amq:authorizationEntry topic=">" read="admins" write="admins" admin="admins" />
      <amq:authorizationEntry topic="ActiveMQ.Advisory.>" read="admins" write="admins" admin="admins"/>
      </amq:authorizationEntries>
      </amq:authorizationMap>
      </amq:map>
      </amq:authorizationPlugin>
      </amq:plugins>
      </amq:broker>

      Connecting with mosquittolib (C) with bad credential rise first "on_connection" event as the connection is OK, and next "on_disconnection" event. Expected behavior is failed connection with BAD CREDENTIAL reported error form broker.

      Attachments

        Activity

          People

            Unassigned Unassigned
            xandros Sandro Salari
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: