You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Sergio Paganoni <se...@gmail.com> on 2014/02/26 16:57:09 UTC

Issue with UrlPathPageParametersEncoder and %2F (/)

Hi everybody,

I'm facing an issue with *Wicket 6.9.1* , I currently mount an endpoint
(/test) the following way:

mount(new MountedMapper("/test", MyPage.class,
 new UrlPathPageParametersEncoder()));

Now if I address the page in the following way, the constructor of MyPage
is correctly called
/test/testID/
/test/testID/123
/test/testID/123/test

But as long that I have an encoded / in the URL (%2F) tomcat is returning
me an empty page (nothing called MyPage).

*For example to reproduce:*
/test/testID/123/test*%2F*
/test/testID/123/test*%2F*anything
/test/a*%2F*

Is this a known bug/issue?

I've seen in JIRA (https://issues.apache.org/jira/browse/WICKET-2125) a
similar issue for Wicket 1.4 but you weren't able to reproduce it.

Thanks for your help

Sergio

Re: Issue with UrlPathPageParametersEncoder and %2F (/)

Posted by Sven Meier <sv...@meiers.net>.
Does your Tomcat return HTTP 400?

https://issues.apache.org/bugzilla/show_bug.cgi?id=7931

Sven

On 02/26/2014 04:57 PM, Sergio Paganoni wrote:
> Hi everybody,
>
> I'm facing an issue with *Wicket 6.9.1* , I currently mount an endpoint
> (/test) the following way:
>
> mount(new MountedMapper("/test", MyPage.class,
>   new UrlPathPageParametersEncoder()));
>
> Now if I address the page in the following way, the constructor of MyPage
> is correctly called
> /test/testID/
> /test/testID/123
> /test/testID/123/test
>
> But as long that I have an encoded / in the URL (%2F) tomcat is returning
> me an empty page (nothing called MyPage).
>
> *For example to reproduce:*
> /test/testID/123/test*%2F*
> /test/testID/123/test*%2F*anything
> /test/a*%2F*
>
> Is this a known bug/issue?
>
> I've seen in JIRA (https://issues.apache.org/jira/browse/WICKET-2125) a
> similar issue for Wicket 1.4 but you weren't able to reproduce it.
>
> Thanks for your help
>
> Sergio
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org