You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by David Rain <da...@kb.cz> on 2012/04/20 14:27:03 UTC

UrlRenderer adds dot if URL is empty

Hello,
I have a question about
in UrlRenderer, lines 237-240 in Wicket 1.5.5

Why is this happening? I don't think that subsequential call to
HttpServletResponse#sendRedirect(".") is correct. I know it should render as
relative to current directory, but for example WebSphere (7) AS sends this
as Location: http://localhost:9080/context/. - WITH the dot at the end! This
wouldn't cause any problem with current browsers, nut if you have some kind
of proxy or load balancer in front of AS (we have IBM HTTP SERVER), it might
them think it is some kind of file, etc. This leads to problems in our
enviroment.
I know it is an specific issue, but generously I think, that the dot is
useless there and only causing problems.

Thanks for reply,
David

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/UrlRenderer-adds-dot-if-URL-is-empty-tp4573752p4573752.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: UrlRenderer adds dot if URL is empty

Posted by David Rain <da...@kb.cz>.
Hello Martin!
I've just tried this snapshot wicket-request-1.5-20120421.120951-2392.jar
and it seems that the ending dot issue is fixed even on WebSphere. I had a
quick look at the source of UrlRenderer and noticed the changes.
OK then, we can wait for 1.5.6, no problem.
Thank you,
David

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/UrlRenderer-adds-dot-if-URL-is-empty-tp4573752p4580122.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: UrlRenderer adds dot if URL is empty

Posted by Martin Grigorov <mg...@apache.org>.
Hi David,

Can you try with 1.5-SNAPSHOT ?
We made some changes in this area for WICKET-4260.
I also filed a bug report to Tomcat because they also produce redirect
urls like: http://host:port/path1/./path2 and this confuses IE only
when Tomcat virtual hosts are used and JMeter (always):
https://issues.apache.org/bugzilla/show_bug.cgi?id=53062

On Fri, Apr 20, 2012 at 3:27 PM, David Rain <da...@kb.cz> wrote:
> Hello,
> I have a question about
> in UrlRenderer, lines 237-240 in Wicket 1.5.5
>
> Why is this happening? I don't think that subsequential call to
> HttpServletResponse#sendRedirect(".") is correct. I know it should render as
> relative to current directory, but for example WebSphere (7) AS sends this
> as Location: http://localhost:9080/context/. - WITH the dot at the end! This
> wouldn't cause any problem with current browsers, nut if you have some kind
> of proxy or load balancer in front of AS (we have IBM HTTP SERVER), it might
> them think it is some kind of file, etc. This leads to problems in our
> enviroment.
> I know it is an specific issue, but generously I think, that the dot is
> useless there and only causing problems.
>
> Thanks for reply,
> David
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/UrlRenderer-adds-dot-if-URL-is-empty-tp4573752p4573752.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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