Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 90E0B200C3D for ; Tue, 14 Mar 2017 15:41:48 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 8F5EE160B7C; Tue, 14 Mar 2017 14:41:48 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B432E160B89 for ; Tue, 14 Mar 2017 15:41:47 +0100 (CET) Received: (qmail 68504 invoked by uid 500); 14 Mar 2017 14:41:47 -0000 Mailing-List: contact issues-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list issues@activemq.apache.org Received: (qmail 68495 invoked by uid 99); 14 Mar 2017 14:41:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Mar 2017 14:41:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 7F7F7C0913 for ; Tue, 14 Mar 2017 14:41:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.451 X-Spam-Level: * X-Spam-Status: No, score=1.451 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id gNEWSuEsTq6i for ; Tue, 14 Mar 2017 14:41:45 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id B432161EC4 for ; Tue, 14 Mar 2017 14:41:44 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id A87D8E0BF7 for ; Tue, 14 Mar 2017 14:41:43 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 56602243E6 for ; Tue, 14 Mar 2017 14:41:42 +0000 (UTC) Date: Tue, 14 Mar 2017 14:41:42 +0000 (UTC) From: "clebert suconic (JIRA)" To: issues@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (ARTEMIS-1035) Conversion of MessageID is not working when crossing protocols MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 14 Mar 2017 14:41:48 -0000 [ https://issues.apache.org/jira/browse/ARTEMIS-1035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] clebert suconic updated ARTEMIS-1035: ------------------------------------- Fix Version/s: 2.next > Conversion of MessageID is not working when crossing protocols > -------------------------------------------------------------- > > Key: ARTEMIS-1035 > URL: https://issues.apache.org/jira/browse/ARTEMIS-1035 > Project: ActiveMQ Artemis > Issue Type: Bug > Components: AMQP, OpenWire > Affects Versions: 2.0.0 > Reporter: Michal Toth > Fix For: 2.next > > > Send a message with Openwire client > Receive a message with AMQP client. > Observe message id property being prefixed & suffixed by some binary or hexa data. > {noformat} > java -jar /var/dtests/node_data/clients/java/aoc/target/aoc7-downstream-ga-5.11.0.redhat-630187.jar sender --log-msgs dict --broker tcp://localhost:61616 --conn-reconnect True --conn-username admin --conn-password admin --address "myQ" --count 2 > {'redelivered': False, 'reply_to': None, 'id': 'mySuperHost-36303-1489414672954-1:1:1:1:1', 'user_id':None, 'correlation_id': None, 'priority': 4, 'durable': True, 'ttl': 0, 'type': None, 'expiration': 0, 'timestamp': 1489414673301, 'address': 'queue://myQ', 'properties': {}, 'content': None} > {'redelivered': False, 'reply_to': None, 'id': 'mySuperHost-36303-1489414672954-1:1:1:1:2', 'user_id':None, 'correlation_id': None, 'priority': 4, 'durable': True, 'ttl': 0, 'type': None, 'expiration': 0, 'timestamp': 1489414673324, 'address': 'queue://myQ', 'properties': {}, 'content': None} > {noformat} > {noformat} > /var/dtests/node_data/clients/aac0_receiver --log-msgs dict --broker admin:admin@localhost:5672 --connection-options "{ sasl_mechanisms : 'PLAIN', protocol : 'amqp1.0' }" --address myQ --count 0 > {'redelivered': False, 'reply_to': None, 'subject': None, 'content_type': None, 'id': None, 'user_id': None, 'correlation_id': None, 'priority': 4, 'durable': True, 'ttl': 0.000000e+00, 'size': 25, 'properties': {'JMSXDeliveryCount': None, '_AMQ_DUPL_ID': 'ID:mySuperHost-36303-1489414672954-1:1:1:1:1', '__HDR_ARRIVAL': 0, '__HDR_BROKER_IN_TIME': 1489414673303, '__HDR_COMMAND_ID': 5, '__HDR_DROPPABLE': False, '__HDR_GROUP_SEQUENCE': 0, '__HDR_MESSAGE_ID': '\\x00\\x00\\x00Jn\\x02\\xffffffae\\x02{\\x00=ID:mySuperHost-36303-1489414672954-1:1\\x00\\x01\\x00\\x01\\x00\\x01', '__HDR_PRODUCER_ID': '\\x00\\x00\\x00F{\\x01+\\x00=ID:mySuperHost-36303-1489414672954-1:1\\x00\\x01\\x00\\x01', 'x-amqp-creation-time': 1489414673301, 'x-amqp-delivery-count': 0, 'x-amqp-to': 'myQ', 'x-opt-jms-dest': 0, 'x-opt-jms-msg-type': 0}, 'content': 'Conversion to AMQP error!'} > {'redelivered': False, 'reply_to': None, 'subject': None, 'content_type': None, 'id': None, 'user_id': None, 'correlation_id': None, 'priority': 4, 'durable': True, 'ttl': 0.000000e+00, 'size': 25, 'properties': {'JMSXDeliveryCount': None, '_AMQ_DUPL_ID': 'ID:mySuperHost-36303-1489414672954-1:1:1:1:2', '__HDR_ARRIVAL': 0, '__HDR_BROKER_IN_TIME': 1489414673325, '__HDR_COMMAND_ID': 6, '__HDR_DROPPABLE': False, '__HDR_GROUP_SEQUENCE': 0, '__HDR_MESSAGE_ID': '\\x00\\x00\\x00Jn\\x02\\xffffffae\\x02{\\x00=ID:mySuperHost-36303-1489414672954-1:1\\x00\\x01\\x00\\x01\\x00\\x02', '__HDR_PRODUCER_ID': '\\x00\\x00\\x00F{\\x01+\\x00=ID:mySuperHost-36303-1489414672954-1:1\\x00\\x01\\x00\\x01', 'x-amqp-creation-time': 1489414673324, 'x-amqp-delivery-count': 0, 'x-amqp-to': 'myQ', 'x-opt-jms-dest': 0, 'x-opt-jms-msg-type': 0}, 'content': 'Conversion to AMQP error!'} > {noformat} > For example here in amqp qpid-cpp receiver, the ID is there 3 times, as "ID" correct, "__HDR_PRODUCER_ID" and "__HDR_MESSAGE_ID". > For amqp qpid-jms receiver client the output is similar, but "ID", "__HDR_PRODUCER_ID" and "__HDR_MESSAGE_ID" are all empty. > But there is "_AMQ_DUPL_ID" which holds proper message id. > {noformat} > Unsupported object type org.apache.qpid.proton.amqp.Binary \x00\x00\x00Jn\x02\xae\x02{\x00=ID:dhcp-lab-215.englab.brq.redhat.com-38063-1489413923077-1:1\x00\x01\x00\x01\x00\x01 > Unsupported object type org.apache.qpid.proton.amqp.Binary \x00\x00\x00F{\x01+\x00=ID:dhcp-lab-215.englab.brq.redhat.com-38063-1489413923077-1:1\x00\x01\x00\x01 > {'redelivered': False, 'reply_to': None, 'id': None, 'user_id':None, 'correlation_id': None, 'priority': 4, 'durable': True, 'ttl': 0, 'type': None, 'expiration': 0, 'timestamp': 1489413923459, 'address': 'myQ', 'properties': {'__HDR_COMMAND_ID': 5, 'JMSXDeliveryCount': 1, '__HDR_ARRIVAL': 0, '__HDR_MESSAGE_ID': , '__HDR_GROUP_SEQUENCE': 0, '__HDR_PRODUCER_ID': , '__HDR_DROPPABLE': False, '__HDR_BROKER_IN_TIME': 1489413923463, '_AMQ_DUPL_ID': 'dhcp-lab-215.englab.brq.redhat.com-38063-1489413923077-1:1:1:1:1'}, 'content': 'Message content of msg number 1'} > {noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346)