You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "Ted Ross (JIRA)" <ji...@apache.org> on 2013/05/09 15:15:15 UTC
[jira] [Commented] (PROTON-308) Python Messenger: Strings encoded
in map bodies are encoded as binary, not string
[ https://issues.apache.org/jira/browse/PROTON-308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13652946#comment-13652946 ]
Ted Ross commented on PROTON-308:
---------------------------------
If the body is set as {u'opcode', u'test'}, the strings are properly encoded. Is this still a bug?
> Python Messenger: Strings encoded in map bodies are encoded as binary, not string
> ---------------------------------------------------------------------------------
>
> Key: PROTON-308
> URL: https://issues.apache.org/jira/browse/PROTON-308
> Project: Qpid Proton
> Issue Type: Bug
> Components: proton-c
> Affects Versions: 0.4
> Reporter: Ted Ross
> Fix For: 0.5
>
>
> I'm using the following code to create a message in Python Messenger:
> from proton import Messenger, Message
> mng = Messenger()
> msg = Message()
> mng.start()
> msg.address = "amqp://0.0.0.0/_local/agent"
> msg.body = {'opcode':'test'}
> mng.put(msg)
> mng.send()
> mng.stop()
> The message body is encoded as an AMQP Value and the value is a map32. The key value in the map is encoded as a vbin8. It should be a str8_utf8.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira