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 0DEE8104E3 for ; Tue, 20 Aug 2013 14:31:39 +0000 (UTC) Received: (qmail 93089 invoked by uid 500); 20 Aug 2013 14:31:38 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 92971 invoked by uid 500); 20 Aug 2013 14:31:38 -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 92939 invoked by uid 99); 20 Aug 2013 14:31:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Aug 2013 14:31:37 +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.173 as permitted sender) Received: from [209.85.160.173] (HELO mail-gh0-f173.google.com) (209.85.160.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Aug 2013 14:31:30 +0000 Received: by mail-gh0-f173.google.com with SMTP id g16so92734ghb.32 for ; Tue, 20 Aug 2013 07:31:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=2t1ruuZL9CfycbQVslpbBcqS9ca71nktbbpzYnCEu6k=; b=xyhmMg+xR8OG2nJKkkK/bnrCCnzlcMlNPSvtnHDsNeKJnWx2tdkbqR7ZE6kJc15n4Z rIeMsnjUlZ3fVvMn0aqm+51bVeMHBz9I0FN7XmragWd7qB0aquoUIuhxSOW7tRShxpdB F8VTFFOUrHE/P8dfP5EjCTQaPH9O6m8bkKnz0nhG5+/ciobz2FMcx2Ie5MdYqmuLE4CS Sa2DXak0dr1N/LuVugQpvT7+ccy8kCJ7MlxijGqCqZ6yfgTvanLW0Csd8j4XFLmAFeEt t31ylXedT39wbKqBb7NG0siTOZeHEflrNHU9lOZmOc6Ei+VNSCOpQDevExUdTk1mNthT fz/g== X-Received: by 10.236.31.167 with SMTP id m27mr102312yha.137.1377009069081; Tue, 20 Aug 2013 07:31:09 -0700 (PDT) Received: from [192.168.2.150] (c-98-218-173-79.hsd1.va.comcast.net. [98.218.173.79]) by mx.google.com with ESMTPSA id s9sm1790050yhb.9.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 20 Aug 2013 07:31:08 -0700 (PDT) Message-ID: <52137DAB.3090300@gmail.com> Date: Tue, 20 Aug 2013 10:31:07 -0400 From: Timothy Bish User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 MIME-Version: 1.0 To: users@activemq.apache.org Subject: Re: Message browsing with Stomp client 1.2 References: <1377004709871-4670514.post@n4.nabble.com> In-Reply-To: <1377004709871-4670514.post@n4.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 08/20/2013 09:18 AM, moret wrote: > Hello. > > I'm using a Stomp client - stompgem - to browse messages on a queue brokered > with ActiveMQ 5.8.0. On CONNECT the client declares > accept-version:1.0,1.1,1.2 . On SUBSCRIBE the client sends the browser:true > header. However this renders a ProtocolException on the broker, saying that > this feature is only available for Stomp V1.1 clients. > > I've looked the validation code on > https://svn.apache.org/repos/asf/activemq/trunk/activemq-stomp/src/main/java/org/apache/activemq/transport/stomp/ProtocolConverter.java > , line 557, and it indeed checks only for version 1.1 of the protocol. As > the client declared it's compatible with 1.2 and the protocol defines that > the highest compatible version is the one accepted by the broker, 1.2 is the > version negotiated, and thus fail the check at this point. > > Is the browsing feature limited to the 1.1 version of the protocol or is > this a forgotten check? > > Bye! > > > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/Message-browsing-with-Stomp-client-1-2-tp4670514.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > Looks like you found a bug, please open a new Jira issue and we will fix it for 5.9 -- Tim Bish Sr Software Engineer | RedHat Inc. tim.bish@redhat.com | www.fusesource.com | www.redhat.com skype: tabish121 | twitter: @tabish121 blog: http://timbish.blogspot.com/