[ 
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

Reply via email to