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] Updated: (QPID-2131) qpid-stat produces error when using clustering and authentication
Date Wed, 07 Oct 2009 08:44:31 GMT

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

Armin Noll updated QPID-2131:
-----------------------------

       Priority: Major  (was: Minor)
    Description: 
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
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) 


The error has also been reported as service request no 1959240 at Red Hat's support system.

  was:
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
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) 


> 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
>
> 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 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) 
> The error has also been reported as service request no 1959240 at Red Hat's support system.

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


Mime
View raw message