qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Armin Noll (JIRA)" <qpid-...@incubator.apache.org>
Subject [jira] Created: (QPID-2131) qpid-stat produces error when using clustering and authentication
Date Wed, 07 Oct 2009 08:40:31 GMT
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/password@host:port leads to the following
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:dev-subscribe@qpid.apache.org

View raw message