You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by John McNally <jm...@collab.net> on 2001/04/02 22:38:08 UTC

using comma vs. slash in $link

I brought this up in an email last week or so, but originally the
template service (through the DymanicURI wrappers) allowed / or , to be
interchangeble in that if you used / the wrapper converted that to
comma.  It is proper within the http spec to interpret %2F as a / and
this is what Apache does.  So you should never use the %2F encoding in
an attempt to fool the http server. Tomcat is more forgiving and will
pass the %2F thru to the servlet engine (itself), so that the pathinfo
is still parseable using / in $link (e.g. $link("admin/EditUsers.vm").

Long ago $link would have converted the / to , which would be encoded as
%2C, everything was cool.  More recently $link left it as is, so it got
encoded as %2F, tomcat didn't mind, so we were still okay.

I was waiting until I needed to put Apache on the front end of tomcat to
fix things the way they used to be, but it seems something in the latest
template service broke the use of slash as the path delimiter.  So I
could put the String.replace function back in, so that / can be used, or
I can leave it out and force the use of comma.

I am leaning more towards just forcing , (for performance and it
requires nothing to be done).  But speak up if you feel strongly about
it.

John McNally

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org