You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2019/12/04 19:40:00 UTC
[jira] [Commented] (PROTON-2153) Python Proton Reactor
get_connection_address attempts to call non-existent connection.get_address
method
[ https://issues.apache.org/jira/browse/PROTON-2153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16988142#comment-16988142 ]
ASF subversion and git services commented on PROTON-2153:
---------------------------------------------------------
Commit e851883fde07b076e7cec83e6570b14505063999 in qpid-proton's branch refs/heads/master from Andrew Stitcher
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=e851883 ]
PROTON-2153: [Python] Fix broken Reactor.get_connection_address() API
> Python Proton Reactor get_connection_address attempts to call non-existent connection.get_address method
> --------------------------------------------------------------------------------------------------------
>
> Key: PROTON-2153
> URL: https://issues.apache.org/jira/browse/PROTON-2153
> Project: Qpid Proton
> Issue Type: Bug
> Components: python-binding
> Affects Versions: proton-c-0.29.0
> Environment: Centos 7 with the following packages installed:
> - epel-release # To make the following packages from EPEL available
> - python36
> - python36-qpid-proton
> - qpid-cpp-server
> - qpid-tools
> Versions of packages related to Qpid:
> $ yum list installed | grep qpid
> python2-qpid.noarch 1.37.0-4.el7 @epel
> python2-qpid-qmf.x86_64 1.39.0-1.el7 @epel
> python36-qpid-proton.x86_64 0.29.0-1.el7 @epel
> qpid-cpp-client.x86_64 1.39.0-1.el7 @epel
> qpid-cpp-server.x86_64 1.39.0-1.el7 @epel
> qpid-proton-c.x86_64 0.29.0-1.el7 @epel
> qpid-qmf.x86_64 1.39.0-1.el7 @epel
> qpid-tools.noarch 1.39.0-1.el7 @epel
> Reporter: Andrew Stitcher
> Assignee: Andrew Stitcher
> Priority: Major
> Attachments: demo.py
>
>
> Pasted from users@qpid.apache.org:
> {quote}With Python Proton version 0.29.0, the `get_connection_address` method of `proton.reactor.Reactor` attempts to call `connection.get_address()`. However, that method doesn't seem to exist, leading to an exception. Code to reproduce this is attached (demo.py - also copied at the end of this message in case this mailing list strips attachments). In this example, we already know the broker address so it's not really necessary to use `get_connection_address`, but our actual messaging handler holds connections to multiple brokers and we use `get_connection_address` to work out which one a message has come from.
> It's possible that we're not using `get_connection_address` as intended, but this has worked in previous versions of Proton to get the address of the broker from which a message was received. This was working with Proton 0.26.0, but breaks with 0.29.0. text{quote}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org