Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 41923 invoked by uid 500); 1 Apr 2001 23:03:47 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 41916 invoked from network); 1 Apr 2001 23:03:46 -0000 Received: from dorfesel.dorf.rwth-aachen.de (root@134.130.59.5) by h31.sny.collab.net with SMTP; 1 Apr 2001 23:03:46 -0000 Received: from web.de (speedy.dorf.RWTH-Aachen.DE [134.130.59.112]) by dorfesel.dorf.RWTH-Aachen.DE (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id AAA29910; Mon, 2 Apr 2001 00:54:52 +0200 Message-ID: <3AC7B3D5.31CA9C7E@web.de> Date: Mon, 02 Apr 2001 01:03:49 +0200 From: Wolle X-Mailer: Mozilla 4.76 [en]C-CCK-MCD DT (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org, tomcat-dev@jakarta-apache.org Subject: BUG in encodeURL Mehtode ? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hello, it seems that I have found a Bug in the response.encodeURL Methode, and perhaps in the response.encodeRedirectURL. System: Suse7.1, Tomcat 3.2.2b2 and Win2k , Jbuilder4 (Tomcat3.2.1). When I use the encode Methode in a valid session , it will extends the ending of the URL with the Session. http://www.bla.blub.com -> http://www.bla.blub.com;jsessionID=gdxcvrtw Thats fine. when I use the Methode on a link with GET parameters: http://www.bla.blub.com?param1=bla¶2=bla -> http://www.bla.blub.com;jsessionID=gdxcvrtw?param1=bla¶2=bla that's also fine. when I use the Methode on a link with GET parameters an a anchor http://www.bla.blub.com?param1=bla¶2=bla#anchor1 -> http://www.bla.blub.com;jsessionID=gdxcvrtw?param1=bla¶2=bla#anchor1 thats also fine, too BUT when I have a Link only with a anchor, it won't be work: http://www.bla.blub.com#anchor1 -> http://www.bla.blub.com#anchor1;jsessionID=gdxcvrtw and this i thing will be pasred wrong, so tomcat think there is no session. Some workaround is that you manual set the anchor later: encURL = response.encodeURL("www.test.com#anchor"); TO encURL = response.encodeURL("www.test.com") + "#anchor"; --