Return-Path: Delivered-To: apmail-tapestry-users-archive@www.apache.org Received: (qmail 92379 invoked from network); 11 Dec 2008 08:34:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Dec 2008 08:34:31 -0000 Received: (qmail 64560 invoked by uid 500); 11 Dec 2008 08:34:39 -0000 Delivered-To: apmail-tapestry-users-archive@tapestry.apache.org Received: (qmail 64544 invoked by uid 500); 11 Dec 2008 08:34:39 -0000 Mailing-List: contact users-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tapestry users" Delivered-To: mailing list users@tapestry.apache.org Received: (qmail 64533 invoked by uid 99); 11 Dec 2008 08:34:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Dec 2008 00:34:39 -0800 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [194.109.24.25] (HELO smtp-vbr5.xs4all.nl) (194.109.24.25) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Dec 2008 08:34:24 +0000 Received: from [10.0.0.1] (a80-126-240-11.adsl.xs4all.nl [80.126.240.11]) by smtp-vbr5.xs4all.nl (8.13.8/8.13.8) with ESMTP id mBB8Y4GC055765 for ; Thu, 11 Dec 2008 09:34:04 +0100 (CET) (envelope-from leon.derks@cumquat.nl) Message-ID: <4940D078.5080307@cumquat.nl> Date: Thu, 11 Dec 2008 09:34:00 +0100 From: Leon Derks User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: Tapestry users Subject: Re: [T5] 5.0.17 URLEncoderImpl.decode error References: <5258d8d70812020631v4480d3c6n88426ec703d97de2@mail.gmail.com> <49404080.50207@cumquat.nl> <1228948176.11085.18.camel@ubuntu> <4940460A.3030708@cumquat.nl> <1228950476.11085.24.camel@ubuntu> In-Reply-To: <1228950476.11085.24.camel@ubuntu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Checked: Checked by ClamAV on apache.org He Martijn, The URL is not really generated. I was playing with Freemarker (Java template engine). I tried it to send a mail... The URL is in the mail template and the email param is replaced by freemarker: My test was to send an email with freemarker with a link in it. I want to be able to click that link and show the email on the screen. So for me it is not handy that the URL encoding has changed, because I can not use the org.apache.tapestry5.internal.services.URLEncoderImpl inside my template. Any ideas how I can solve this? greetz, Leon Martijn Brinkers wrote: > I guess the URL is generated outside of Tapestry? because if you > passivate or create a link from Tapestry the parameters are encoded with > the Tapestry 'special' encoding. > > You can probably use the default encoder implementation if you want to > encode from outside of Tapestry: > > org.apache.tapestry5.internal.services.URLEncoderImpl > > Martijn Brinkers > > > On Wed, 2008-12-10 at 23:43 +0100, Leon Derks wrote: > >> Hi Martijn, >> >> Thanks! >> Yes, http://localhost:8090/tapestry/test/user/user$0040company.com >> works, when I change the @ into $0040 manually. >> >> But how can I automatically translate @ into $0040, because my code >> still generates the '@' character in the url. >> >> greetz, >> Leon >> >> >> Martijn Brinkers wrote: >> >>> The URL encoder has been changed. >>> >>> @ for example is now encoded as $0040 >>> >>> See https://issues.apache.org/jira/browse/TAP5-302 >>> >>> >>> Search the archive for what and why things have changed >>> http://tapestry.markmail.org >>> >>> Martijn Brinkers >>> >>> >>> >>> On Wed, 2008-12-10 at 23:19 +0100, Leon Derks wrote: >>> >>> >>>> Hello >>>> This evening I tried tapestry 5.0.17 >>>> >>>> When I type in the following url in my application: >>>> http://localhost:8090/tapestry/test/user/user@company.com >>>> >>>> I do get an java.lang.IllegalArgumentException >>>> It says: "Input string 'user@company.com' is not valid; the character >>>> '@' at position 5 is not valid." >>>> Stacktrace: >>>> >>>> org.apache.tapestry5.internal.services.URLEncoderImpl.decode(URLEncoderImpl.java:143) >>>> >>>> org.apache.tapestry5.internal.services.ContextPathEncoderImpl.decodePath(ContextPathEncoderImpl.java:70) >>>> >>>> org.apache.tapestry5.internal.services.PageRenderDispatcher.process(PageRenderDispatcher.java:88) >>>> >>>> org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:71) >>>> >>>> org.apache.tapestry5.services.TapestryModule$17.service(TapestryModule.java:1029) >>>> >>>> I didn't had this problem in tapestry 5.0.14. >>>> I searched in the changes, but couldn't find a change that would cause >>>> this error. >>>> >>>> Any ideas? >>>> >>>> Leon >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org >>>> For additional commands, e-mail: users-help@tapestry.apache.org >>>> >>>> >>>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org >>> For additional commands, e-mail: users-help@tapestry.apache.org >>> >>> >>> __________ NOD32 3682 (20081210) Informatie __________ >>> >>> Dit bericht is gecontroleerd door het NOD32 Antivirus Systeem. >>> http://www.nod32.nl >>> >>> >>> >>> >>> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org >> For additional commands, e-mail: users-help@tapestry.apache.org >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org > For additional commands, e-mail: users-help@tapestry.apache.org > > > > __________ NOD32 3682 (20081210) Informatie __________ > > Dit bericht is gecontroleerd door het NOD32 Antivirus Systeem. > http://www.nod32.nl > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org For additional commands, e-mail: users-help@tapestry.apache.org