qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Håkan Johansson (JIRA) <j...@apache.org>
Subject [jira] [Created] (QPID-7102) List and map content not handled correctly in qpid-cpp Python wrapper.
Date Thu, 25 Feb 2016 08:33:18 GMT
Håkan Johansson created QPID-7102:
-------------------------------------

             Summary: List and map content not handled correctly in qpid-cpp Python wrapper.
                 Key: QPID-7102
                 URL: https://issues.apache.org/jira/browse/QPID-7102
             Project: Qpid
          Issue Type: Bug
          Components: Python Client (Wrapped)
    Affects Versions: qpid-cpp-0.34
         Environment: Red Hat Enterprise Linux Server release 6.7 (Santiago)
The broker is ActiveMQ 5.13.0.
The protocol used in AMQP 1.0.
            Reporter: Håkan Johansson


I can create and send messages with list or map content without a problem. The content type
is correctly set to either "amqp/list" or "amqp/map" depending on the content object.

The problem is when I read the message. The {{message.content}} value is garbled. Here is
the code that implements the reading of a {{content}} property:
{code}
    def _get_content(self) :
        obj = self.getContentObject()
        if obj:
            return obj
        if self.content_type == "amqp/list" :
            return decodeList(self)
        if self.content_type == "amqp/map" :
            return decodeMap(self)
        return self.getContent()
{code}

The {{self.getContentObject()}} call returns the garbled string. As you can see in the code
it then decides _not_ to decode it. Really strange.

I get the proper result if I manually call {{decodeList(message)}} or {{decodeMap(message)}},
but that is not a reasonable thing to do.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message