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 A5BD44FEF for ; Wed, 29 Jun 2011 11:10:59 +0000 (UTC) Received: (qmail 57704 invoked by uid 500); 29 Jun 2011 11:10:58 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 57460 invoked by uid 500); 29 Jun 2011 11:10:56 -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 57450 invoked by uid 99); 29 Jun 2011 11:10:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jun 2011 11:10:54 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rainer.jung@kippdata.de designates 195.227.30.149 as permitted sender) Received: from [195.227.30.149] (HELO mailserver.kippdata.de) (195.227.30.149) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jun 2011 11:10:48 +0000 Received: from [172.28.29.138] ([172.28.29.138]) by mailserver.kippdata.de (8.13.5/8.13.5) with ESMTP id p5TBAQ2b002027 for ; Wed, 29 Jun 2011 13:10:26 +0200 (CEST) Message-ID: <4E0B0822.5000904@kippdata.de> Date: Wed, 29 Jun 2011 13:10:26 +0200 From: Rainer Jung User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: Tomcat Developers List Subject: response.encodeURL("http://localhost:8080") produces an invalid URL? X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Motivated by https://issues.apache.org/jira/browse/WICKET-3841 I tested response.encodeURL("http://localhost:8080") and I get http://localhost:8080;jsessionid=... (cookies off). Note that there is no slash between the port and the sessionid path info. According to my reading of RFC3986 (URIs), the input URI is a correct URI, the resulting URI is not: because it has an authority, the rest must be zero or more path-abempty, which always start with a slash. Did anyone stumble over this yet? If there's no objections, I'll write a patch and check, what the TCK has to say. The spec does not see to contain any specification of encodeURL apart from the JavaDoc. Regards, Rainer --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org