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/04/15 21:01:00 UTC

[jira] [Commented] (PROTON-2034) [python] Selectors fail against Java servers (ActiveMQ, Artemis) if non-unicode string is used

    [ https://issues.apache.org/jira/browse/PROTON-2034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16818387#comment-16818387 ] 

ASF subversion and git services commented on PROTON-2034:
---------------------------------------------------------

Commit d42b738283508c8fefc7ca55efdba02ea65c5e79 in qpid-proton's branch refs/heads/master from Kim van der Riet
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=d42b738 ]

PROTON-2034: Python client converts binary selector strings to unicode before sending to server


> [python] Selectors fail against Java servers (ActiveMQ, Artemis) if non-unicode string is used
> ----------------------------------------------------------------------------------------------
>
>                 Key: PROTON-2034
>                 URL: https://issues.apache.org/jira/browse/PROTON-2034
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: python-binding
>            Reporter: Kim van der Riet
>            Assignee: Kim van der Riet
>            Priority: Major
>
> If a selector is used with a non-unicode string, the Java AMQP servers (Artemis, ActiveMQ) reject it with an "Invalid parameter" error. It appears that these servers are expecting only uniocde strings for the selector, and will close the connection if any other type is received.
> In Python 2.x, this is an easy mistake to make, as strings are non-unicode by default. The solution for the client to convert Python binary types to unicode before sending on the wire to the server.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org