Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4073FDD6F for ; Wed, 11 Jul 2012 15:25:10 +0000 (UTC) Received: (qmail 74557 invoked by uid 500); 11 Jul 2012 15:25:09 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 74508 invoked by uid 500); 11 Jul 2012 15:25:09 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 74483 invoked by uid 99); 11 Jul 2012 15:25:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2012 15:25:08 +0000 X-ASF-Spam-Status: No, hits=0.9 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tabish121@gmail.com designates 209.85.160.171 as permitted sender) Received: from [209.85.160.171] (HELO mail-gh0-f171.google.com) (209.85.160.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2012 15:25:02 +0000 Received: by ghy10 with SMTP id 10so1335752ghy.2 for ; Wed, 11 Jul 2012 08:24:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:date:in-reply-to:references:content-type :x-mailer:content-transfer-encoding:mime-version; bh=z+aJlV5b+RsoH8Vg/G6UWlKpXtu0dTPCgS6Qt8EN9LE=; b=CE5W5REwqV9CfZKJ7eTwJRQX8J8c4tT8l0BE60+yRxCFdLrvqfyadFla5AaAIeWjnW RTUwC9ONnqxs4el5GGV3m9PMVK/1icM3GfeEWH5NAqtd+XRGb3vE0F9V3Cqxa+CewLU6 VoXvYLmcfnzi2WrsfaTFsGC7v+JKIArBrKJmN+jGVY/U2+vsAd2VPAn/OBLRFaBV95G/ Cfx+3M7hHpm4Itcej3Ak8x3MoahejfbXfN34mCk80HjjI1Ba7CurHOLQcqOYrWMGSuZz 33cbjtJM6imqZVNIX8Ik8Z4F2nlhsw7UZkkV40+E8vLqh8Lj1SbInSM0isY4OhwJyLSq q7uA== Received: by 10.236.161.39 with SMTP id v27mr6023747yhk.126.1342020281123; Wed, 11 Jul 2012 08:24:41 -0700 (PDT) Received: from [192.168.2.150] (c-98-231-181-148.hsd1.va.comcast.net. [98.231.181.148]) by mx.google.com with ESMTPS id i16sm1728145anm.12.2012.07.11.08.24.40 (version=SSLv3 cipher=OTHER); Wed, 11 Jul 2012 08:24:40 -0700 (PDT) Message-ID: <1342020279.2655.1.camel@OfficePC> Subject: Re: ActiveMQ 5.6.0 - STOMP topics treated as queues if there is a space after 'destination: ' From: Timothy Bish To: users@activemq.apache.org Date: Wed, 11 Jul 2012 11:24:39 -0400 In-Reply-To: <1342019691938-4653900.post@n4.nabble.com> References: <1342019691938-4653900.post@n4.nabble.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 On Wed, 2012-07-11 at 08:14 -0700, Pete Redhead wrote: > Hi, > > I have spotted an oddity when subscribing to STOMP topics in ActiveMQ 5.6.0. > > In version 5.5.1 (and those prior), a space after the colon in the > destination header was ignored. ie > destination:/topic/test > and > destination: /topic/test > were both treated as the same. > > However, in version 5.6.0 the latter is treated as a queue with the name > /queue//topic/test. > > Is this intentional? > > I appreaciate that the augmented BNF states that there is no space after the > ':' but it seems a bit odd to convert the topic to a queue. Surely an error > frame would be more suitable? > The use of a space was not mentioned in version 1.0 of the STOMP spec, so > this is causing some odd behaviour with older libraries. > > Attached are the results of some quick tests showing differences between the > two versions of ActiveMQ. > > Thanks, > Pete > http://activemq.2283324.n4.nabble.com/file/n4653900/whitespace_test_5_5_1.txt > whitespace_test_5_5_1.txt > http://activemq.2283324.n4.nabble.com/file/n4653900/whitespace_test_5_6_0.txt > whitespace_test_5_6_0.txt > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-5-6-0-STOMP-topics-treated-as-queues-if-there-is-a-space-after-destination-tp4653900.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. There is a fix for this in the SNAPSHOT builds. In general though the STOMP specs allow spaces in the headers an so a value that starts with a space is not the same as a non-space value so you need to ensure that you only place spaces in when you mean it as the future AMQ brokers are going to adhere more closely to this rule. -- Tim Bish Sr Software Engineer | FuseSource Corp tim.bish@fusesource.com | www.fusesource.com skype: tabish121 | twitter: @tabish121 blog: http://timbish.blogspot.com/