[
https://issues.apache.org/jira/browse/PROTON-2531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17928476#comment-17928476
]
ASF subversion and git services commented on PROTON-2531:
---------------------------------------------------------
Commit 221493011e271cf899a54b596e2b257b4b9904fb in qpid-proton's branch
refs/heads/main from Pete Fawcett
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=221493011 ]
PROTON-2531: Use surrogateescape when reading converting bytes to string
- Add tests to check that binary delivery tags are decoded without
errors.
> Delivery tag is str while it should be bytes
> --------------------------------------------
>
> Key: PROTON-2531
> URL: https://issues.apache.org/jira/browse/PROTON-2531
> Project: Qpid Proton
> Issue Type: Bug
> Components: python-binding
> Reporter: Ievgen Popovych
> Assignee: Pete Fawcett
> Priority: Major
>
> According to AMQP standard delivery tag is ??up to 32 octets of binary
> data??. Proton C library also has it in binary format.
> But in the Python binding {{Delivery.tag}} is a string, which causes issues
> when trying to use it (i.e. print/visualize).
> As far as I understand this is down to Swig {{python/cproton.i}}
> {{wrap_pn_delivery_tag}} (since typemap for {{pn_delivery_tag_t}} seems to be
> correct)?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]