Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1D7908542 for ; Mon, 22 Aug 2011 13:51:26 +0000 (UTC) Received: (qmail 61933 invoked by uid 500); 22 Aug 2011 13:51:25 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 61874 invoked by uid 500); 22 Aug 2011 13:51:24 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 61864 invoked by uid 99); 22 Aug 2011 13:51:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2011 13:51:24 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.59.212] (HELO qmta14.westchester.pa.mail.comcast.net) (76.96.59.212) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2011 13:51:15 +0000 Received: from omta19.westchester.pa.mail.comcast.net ([76.96.62.98]) by qmta14.westchester.pa.mail.comcast.net with comcast id PRco1h00627AodY5ERqvlp; Mon, 22 Aug 2011 13:50:55 +0000 Received: from [192.168.1.201] ([69.143.109.145]) by omta19.westchester.pa.mail.comcast.net with comcast id PRpo1h00e38FjT13fRqEtl; Mon, 22 Aug 2011 13:50:32 +0000 Message-ID: <4E525E79.2050209@christopherschultz.net> Date: Mon, 22 Aug 2011 09:49:45 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: / on end of context paths breaking existing apps References: In-Reply-To: X-Enigmail-Version: 1.3 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig0569D538C9D6A4CB53B3E0DE" --------------enig0569D538C9D6A4CB53B3E0DE Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Tim, On 8/21/2011 5:49 PM, Tim Whittington wrote: > The change in [1] has broken existing behaviour in some applications. To echo some of Mark's comments: > Consider the following situation: > - An application is context path /application > - The application has a servlet mapped to /* So, the only valid URIs should be of the form "/application/*". Note the / before the *. If you could map something to, say, "*" (no leading slash), then maybe this could be considered a bug, but since the simplest possible valid URI that maps to your webapp is actually "/application/", I don't think it's a bug. Now, it may be interfering with your webapp's operation, but that's a different story. :) > This seems wrong - we're considering a path as being part of a > context, but establishing a session that will not include that path > (for some browsers at least). Who is "we", here? The URI path "/application" is the "context path", but not a valid URI within that context. To get a valid URI, you need to add something that starts with a /. > This notably makes Cookie based session tracking inconsistent with URL > rewriting. Does it? How? What part of your webapp chokes when cookies are received with a path prefix of "/application/" instead of "/application"? -chris --------------enig0569D538C9D6A4CB53B3E0DE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk5SXnsACgkQ9CaO5/Lv0PDw/ACdEgZoUao5yktjseHHJe0MXx7K xZAAoKRY2ozA1/6s0t2icg2kHD9gqQyr =lozB -----END PGP SIGNATURE----- --------------enig0569D538C9D6A4CB53B3E0DE--