Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
qpid-cpp-0.34
-
None
-
None
-
Red Hat Enterprise Linux Server release 6.7 (Santiago)
The broker is ActiveMQ 5.13.0.
The protocol used in AMQP 1.0.
Description
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:
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()
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.