qpid-stat produces error when using clustering and authentication
-----------------------------------------------------------------

                 Key: QPID-2131
                 URL: https://issues.apache.org/jira/browse/QPID-2131
             Project: Qpid
          Issue Type: Bug
          Components: python tools
    Affects Versions: M4
         Environment: Red Hat Enterprise MRG 1.1
            Reporter: Armin Noll
            Priority: Minor


When a broker is running as a member of a cluster and it has authentication 
enabled then running qpid-stat with a valid broker address of form 
username/passw...@host:port leads to the following error:
Failed: TypeError - int argument required
 
This is caused by a call to addBroker in method display of the BrokerManager 
class. As first argument the variable "host" is specified here which does not 
contain username and password, only hostname and port number.
Therefore authentication fails and the mentioned error message is displayed.
 
For us the following fix works:
We replaced this code
            for host in hostList:
                b = self.qmf.addBroker(host, _connTimeout)
by this
            authString = _host.split("@")
            if len(authString[0]) > 0:
                authString[0] = authString[0] + "@"
            for host in hostList:
                b = self.qmf.addBroker(authString[0] + host, _connTimeout) 

-- 
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