Re: Link URLs (with JSessionID) truncated during URL rewriting
I fixed the problem by going around it. All my web pages are descended from my PageBase class, which in turn descends from Wicket's WebPage. · I disable my automatic removal of JSessionID by overriding public String ServletWebResponse.encodeURL(CharSequence url) in my WebApplication. · In my PageBase constructor, I determine whether (session) cookies are detected are being stored or not. · If not, then I raise an org.apache.wicket.RestartResponseException(final ClassC pageClass) to show my PageCookiesDisabled. This interrupts a Not found error from an invalid URL containing .. characters, which I encountered previously. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Link-URLs-with-JSessionID-truncated-tp4381881p4414037.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Link URLs (with JSessionID) truncated during URL rewriting
I've had the same issue. It happens when you have mounted home page to / and another page Foo to /foo. Then the URL with jsessionid looks like this: /foo/..;jsessionid and the mapper of page Foo takes it as if it is a URL to this page with parameter ... And this mapper always goes before home page mapper, because it has score 1 for matching first segment. I fixed it by overloading newWebRequest in Application class: protected WebRequest newWebRequest(HttpServletRequest servletRequest, String filterPath) { WebRequest webRequest = super.newWebRequest(servletRequest, filterPath); return new ServletWebRequest(servletRequest, filterPath, webRequest.getUrl().canonical()); }
Re: Link URLs (with JSessionID) truncated during URL rewriting
On Thu, Feb 23, 2012 at 4:09 PM, Bartosz Jakubowski bumbu...@wp.pl wrote: I've had the same issue. It happens when you have mounted home page to / and another page Foo to /foo. Then the URL with jsessionid looks like this: /foo/..;jsessionid and the mapper of page Foo takes it as if it is a URL to this page with parameter ... And this mapper always goes before home page mapper, because it has score 1 for matching first segment. I fixed it by overloading newWebRequest in Application class: protected WebRequest newWebRequest(HttpServletRequest servletRequest, String filterPath) { WebRequest webRequest = super.newWebRequest(servletRequest, filterPath); return new ServletWebRequest(servletRequest, filterPath, webRequest.getUrl().canonical()); } https://issues.apache.org/jira/browse/WICKET-4401 There is a patch attached to this ticket. Try it and send feedback. -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Link URLs (with JSessionID) truncated during URL rewriting
I run my Wicket app on Google App Engine for Java, which I believe uses Jetty (or modified Jetty?) not Tomcat as its web application server. The JIRA ticket states The bug does only show up when using tomcat (6.0.29) and not in jetty, so I'll dip out of testing this particular ticket if that's OK. Martin Grigorov-4 wrote https://issues.apache.org/jira/browse/WICKET-4401 There is a patch attached to this ticket. Try it and send feedback. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Link-URLs-with-JSessionID-truncated-tp4381881p4414160.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Link URLs (with JSessionID) truncated during URL rewriting
I use Jetty 6.1.26 and this patch works fine for me. Thanks. On 23.02.2012 16:23, Ian Marshall wrote: I run my Wicket app on Google App Engine for Java, which I believe uses Jetty (or modified Jetty?) not Tomcat as its web application server. The JIRA ticket states The bug does only show up when using tomcat (6.0.29) and not in jetty, so I'll dip out of testing this particular ticket if that's OK. Martin Grigorov-4 wrote https://issues.apache.org/jira/browse/WICKET-4401 There is a patch attached to this ticket. Try it and send feedback. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Link-URLs-with-JSessionID-truncated-tp4381881p4414160.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org