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 48BF7200BA5 for ; Tue, 4 Oct 2016 21:13:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4791C160AC7; Tue, 4 Oct 2016 19:13:22 +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 82F9C160ADC for ; Tue, 4 Oct 2016 21:13:21 +0200 (CEST) Received: (qmail 72085 invoked by uid 500); 4 Oct 2016 19:13:20 -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 72060 invoked by uid 99); 4 Oct 2016 19:13:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Oct 2016 19:13:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 85CE82C0B05 for ; Tue, 4 Oct 2016 19:13:20 +0000 (UTC) Date: Tue, 4 Oct 2016 19:13:20 +0000 (UTC) From: "Justin Bertram (JIRA)" To: issues@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (ARTEMIS-768) Broker delivers STOMP message with invalid payload when using core api ClientProducer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 04 Oct 2016 19:13:22 -0000 [ https://issues.apache.org/jira/browse/ARTEMIS-768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Justin Bertram reassigned ARTEMIS-768: -------------------------------------- Assignee: Justin Bertram > Broker delivers STOMP message with invalid payload when using core api ClientProducer > ------------------------------------------------------------------------------------- > > Key: ARTEMIS-768 > URL: https://issues.apache.org/jira/browse/ARTEMIS-768 > Project: ActiveMQ Artemis > Issue Type: Bug > Components: Stomp > Affects Versions: 1.1.0 > Environment: Redhat Linux 2.6 > Reporter: Ruben Cala > Assignee: Justin Bertram > > When using core api ClientProducer to publish messages with a text payload (xml string, btw) to the broker, the messages sent to stomp consumers have an invalid stomp body. > In the message delivered to stomp consumers, the original text payload was 5 characters longer than the published payload. The stomp messages delivered had 3 extra characters at the front of the payload, and 2 extra characters at the end (spaces), before the final terminating NULL character. > Besides the fact that the string payload is different from what was published, the 3 extra characters in the front of the stomp message often contained the NULL character. > This violates the stomp MESSAGE format, and was causing incorrect stomp message parsing. > The workaround for this was to use the stomp content-length header to determine how many bytes to read in for the body, then manually discarding the garbage characters. -- This message was sent by Atlassian JIRA (v6.3.4#6332)