-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nikita,

On 4/8/2010 11:14 AM, Nikita Tovstoles wrote:
> We use Wicket that periodically redirects to relative URLs starting with
> '../'. I realize that's against the RFC (which says redirects are supposed
> to be absolute), but I am not clear on why doesn't Tomcat collapse those
> URLs in Response.toAbsolute()?

I see no toAbsolute method in the HttpServletResponse class. Are you
talking about some other toolkit?

> -assume client is at http://localhost/app/home
> -app responds to a request with 302 '../home.0'
> -Response.toAbsolute() rewrites Location as  http://localhost/app/home/ . .
> /home.0 (spaces added to avoid spam filter)

What does the response actually look like to the browser?

> But, if client then issues a GET with exactly that URL - and not
> http://localhost/app/home.0, Tomcat will issue a 404.

Which URL?

> In other words,
> toAbsolute() produces a URL that Tomcat cannot service. Why the asymmetry?

Again, where does toAbsolute come from?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAku+NBoACgkQ9CaO5/Lv0PDlRwCfY7H0qEd2n7ecm5cx5Eoq9Bgs
VbsAoKviSHois6KOMe8OKloU/UwkWE72
=WdrP
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to