qpid-proton mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Ross (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PROTON-308) Python Messenger: Strings encoded in map bodies are encoded as binary, not string
Date Thu, 09 May 2013 13:09:16 GMT
Ted Ross created PROTON-308:
-------------------------------

             Summary: 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

Mime
View raw message