Return-Path: Delivered-To: apmail-tapestry-users-archive@www.apache.org Received: (qmail 96108 invoked from network); 11 Dec 2008 08:47:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Dec 2008 08:47:17 -0000 Received: (qmail 76920 invoked by uid 500); 11 Dec 2008 08:47:23 -0000 Delivered-To: apmail-tapestry-users-archive@tapestry.apache.org Received: (qmail 76906 invoked by uid 500); 11 Dec 2008 08:47:23 -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 76894 invoked by uid 99); 11 Dec 2008 08:47:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Dec 2008 00:47:23 -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 (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [208.72.237.25] (HELO sasl.smtp.pobox.com) (208.72.237.25) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Dec 2008 08:47:00 +0000 Received: from localhost.localdomain (unknown [127.0.0.1]) by b-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTP id 423E3189AC for ; Thu, 11 Dec 2008 03:46:35 -0500 (EST) Received: from [192.168.1.35] (unknown [146.50.200.219]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by b-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTPSA id 8BEED189B8 for ; Thu, 11 Dec 2008 03:46:34 -0500 (EST) Subject: Re: [T5] 5.0.17 URLEncoderImpl.decode error From: Martijn Brinkers To: Tapestry users In-Reply-To: <4940D078.5080307@cumquat.nl> References: <5258d8d70812020631v4480d3c6n88426ec703d97de2@mail.gmail.com> <49404080.50207@cumquat.nl> <1228948176.11085.18.camel@ubuntu> <4940460A.3030708@cumquat.nl> <1228950476.11085.24.camel@ubuntu> <4940D078.5080307@cumquat.nl> Content-Type: text/plain Date: Thu, 11 Dec 2008 09:46:59 +0100 Message-Id: <1228985219.11085.30.camel@ubuntu> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-Pobox-Relay-ID: 37719E98-C760-11DD-8D5B-F83E113D384A-02172646!a-sasl-quonix.pobox.com X-Virus-Checked: Checked by ClamAV on apache.org I had a similar requirement and decided not use the activation context for this but do it the 'old fashioned' way with parameters (ie. ?email=blabla) by injecting the Request service. If your freemaker code runs inside a Tapestry application I guess you can add the URLEncoder service to the freemaker context and use if from a freemarker template Martijn On Thu, 2008-12-11 at 09:34 +0100, Leon Derks wrote: > 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 > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org For additional commands, e-mail: users-help@tapestry.apache.org