Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 26700 invoked from network); 11 Sep 2007 00:59:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Sep 2007 00:59:54 -0000 Received: (qmail 73710 invoked by uid 500); 11 Sep 2007 00:59:47 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 73687 invoked by uid 500); 11 Sep 2007 00:59:47 -0000 Mailing-List: contact dev-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 dev@activemq.apache.org Received: (qmail 73678 invoked by uid 99); 11 Sep 2007 00:59:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2007 17:59:47 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Sep 2007 01:01:17 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B8DED714208 for ; Mon, 10 Sep 2007 17:59:22 -0700 (PDT) Message-ID: <10197772.1189472362754.JavaMail.jira@brutus> Date: Mon, 10 Sep 2007 17:59:22 -0700 (PDT) From: "Jim Gomes (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQNET-59) Unmarshalling Bytes Message does not read NULL terminating byte In-Reply-To: <28724332.1189472362468.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQNET-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40119 ] Jim Gomes commented on AMQNET-59: --------------------------------- Note: the patch was generated after applying the patches for [AMQNET-53] and [AMQNET-56]. > Unmarshalling Bytes Message does not read NULL terminating byte > --------------------------------------------------------------- > > Key: AMQNET-59 > URL: https://issues.apache.org/activemq/browse/AMQNET-59 > Project: ActiveMQ .Net > Issue Type: Bug > Components: Stomp > Environment: Windows XP SP2 > .NET 2.0 > STOMPConnect 1.0 > TIBCO EMS 4.2.0 > Reporter: Jim Gomes > Assignee: James Strachan > Priority: Critical > Attachments: StompWireFormat.cs.patch.txt > > Original Estimate: 1 hour > Remaining Estimate: 1 hour > > The [STOMP protocol specification|http://docs.codehaus.org/display/STOMP/Protocol] states that a bytes message frame should still be NULL terminated even when the content-length header is specified. The StompWireFormat.Unmarshal() function does not read this final terminating NULL byte when unmarshaling a bytes message. This messes up the parsing of the next message to be sent to the consumer, and it will be discarded as an unknown format message. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.