activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Bish (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AMQ-5233) MQTT broker with ACL, try to connect using bad credential sends first connection event and next disconnect event to client
Date Mon, 21 Jul 2014 19:58:39 GMT

     [ https://issues.apache.org/jira/browse/AMQ-5233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Timothy Bish resolved AMQ-5233.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 5.11.0

Improved the connection error handling and added test.

> MQTT broker with ACL, try to connect using bad credential sends first connection event
and next disconnect event to client 
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-5233
>                 URL: https://issues.apache.org/jira/browse/AMQ-5233
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.9.1
>         Environment: Windows 7 - 64 bit
> Eclipse Kepler
> JDK 1.7
> Spring 4.0
> MosquittoLib (C) on iOS
>            Reporter: Sandro Salari
>            Priority: Minor
>              Labels: acl, broker, connection, disconnection, mqtt
>             Fix For: 5.11.0
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message