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 71A27D699 for ; Mon, 23 Jul 2012 10:38:25 +0000 (UTC) Received: (qmail 14226 invoked by uid 500); 23 Jul 2012 10:38:25 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 14192 invoked by uid 500); 23 Jul 2012 10:38:24 -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 14172 invoked by uid 99); 23 Jul 2012 10:38:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jul 2012 10:38:24 +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.216.171 as permitted sender) Received: from [209.85.216.171] (HELO mail-qc0-f171.google.com) (209.85.216.171) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jul 2012 10:38:18 +0000 Received: by qcad1 with SMTP id d1so243330qca.2 for ; Mon, 23 Jul 2012 03:37:57 -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=a9lfO0Vwj+a+fAR47YGHL2tye7ci29e0xW5D6PkHGS8=; b=Vpcd1aPStlIoeAPaFOSY9iFDLoC+5+yWJr/CFiJegFhAA6TMA3Tdxi8jAo5g5GpNO5 C9QCDnfvcrpnYJ+EcSi+z6H4DSTnEUL6+NuXPJSxD8dL6XlLXjRln6isyMAwaEzi6Dqi VPsw43J/bTEACdNusLG1+Do9uDT98HbUK6OMMpXYklP+JliDGIi+/QiaUop3KGLcFQ/n 9QRsP7PGw6chgEhqJ6ZW7n9K8lSMiCFEerRduTEu+6lENhipeOj6KU/oP0KNk1KvDBd4 Wl7EspDwJI4lPY1VTCKDB3lCbIdUoEyD8phRGx6EKUPJKWSPfqL5kZmvUWTgB3O7Cl28 NDvg== Received: by 10.229.136.1 with SMTP id p1mr6941046qct.81.1343039877527; Mon, 23 Jul 2012 03:37:57 -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 i5sm10021193qak.11.2012.07.23.03.37.56 (version=SSLv3 cipher=OTHER); Mon, 23 Jul 2012 03:37:57 -0700 (PDT) Message-ID: <1343039876.2718.3.camel@OfficePC> Subject: Re: AMQ 5.6 breaks Stomp 1.0 clients, was: Re: 5.5 to 5.6 upgrade, stomp client suddenly gets "User name [ xyz] or password is invalid." From: Timothy Bish To: users@activemq.apache.org Date: Mon, 23 Jul 2012 06:37:56 -0400 In-Reply-To: References: <1342972296569-4654229.post@n4.nabble.com> <1343016677262-4654230.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 Mon, 2012-07-23 at 11:23 +0100, Gary Tully wrote: > So the root problem is the php client having space between the ':' > header key value separator that used to be trimmed. > > Seems like there is a need to make the 1.1 compliant behavior > introduced in https://issues.apache.org/jira/browse/AMQ-3823 > configurable. > As in, have the option to force 1.0 (or existing amq) behavior when > the 1.1 version header is not present in a connect. > In fact, that seems like a sensible default. > Even though its a bit vague, the Stomp 1.0 spec also requires that key / header values allow for space padding just as the 1.1 spec does, you can see this by examining the BNF for each spec. If we are going to claim spec compliance then we probably shouldn't default to non-spec complaint behavior. We could make it configurable but it seems like the right thing to do is to use an updated client that is also spec complaint instead of introducing yet another configuration option into the already large and not so well documented set of options we already have. > > On 23 July 2012 05:11, neek wrote: > > I see that one of the changes going into ActiveMQ 5.6 was Stomp 1.1 support: > > https://issues.apache.org/jira/browse/AMQ-3449 > > > > Could this have changed the Stomp protocol supported in ActiveMQ such that > > my Stomp 1.0 PHP client can no longer communicate with it? This sounds like > > a regression, and so seems unlikely, however the specs at > > http://stomp.github.com/stomp-specification-1.0.html#STOMP_Frames and > > http://stomp.github.com/stomp-specification-1.1.html#STOMP_Frames clearly > > show a difference and ActiveMQ 5.6 seems to be breaking Stomp 1.0 > > compatibility. > > > > This is supported by https://issues.apache.org/jira/browse/AMQ-3823 which > > clearly states that no whitespace (ws) should be trimmed from headers. This > > makes an old Stomp 1.0 client completely incompatible with ActiveMQ and its > > Stomp 1.1 implementation. It seems there's no version handshaking going on > > in the Stomp protocol, so old clients have no way of working against new > > servers because the server has no way of gracefully falling back to the old > > protocol. > > > > I did a bunch of painful debugging that I'll omit here as the situation > > seems clear. > > > > Where should we get a PHP Stomp 1.1 client from? I don't see one bundled > > with ActiveMQ and the usual suspects (http://activemq.apache.org/php.html, > > http://stomp.fusesource.org/index.html, > > http://stomp.github.com/implementations.html) don't offer any fresh leads. > > I see a comment on https://issues.apache.org/jira/browse/AMQ-3836 saying > > that the PHP client has been updated, but I don't see where to find this > > client. > > > > I'm falling back to ActiveMQ 5.5 for now. A big red warning flag about > > breaking Stomp 1.0 compatibility would have been appreciated. Perhaps there > > was one and I missed it? > > > > Nick > > > > > > > > -- > > View this message in context: http://activemq.2283324.n4.nabble.com/5-5-to-5-6-upgrade-stomp-client-suddenly-gets-User-name-xyz-or-password-is-invalid-tp4654229p4654230.html > > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > > -- Tim Bish Sr Software Engineer | FuseSource Corp tim.bish@fusesource.com | www.fusesource.com skype: tabish121 | twitter: @tabish121 blog: http://timbish.blogspot.com/