Truncated URLs
I have a problem with URLs whose last path segment contains a
fullstop, eg: /x/3.1/y/1.11
To illustrate the issue, I created a new lift project and added the
following to the Boot:
LiftRules.dispatch.prepend {
case Req(List("x", x,"y", y), _, _) => () => Full(XmlResponse( <p>x={ x } y={ y } </p> ))
}
Pointing a browser at /x/3.1/y/1.11 returns: x=3.1 y=1
So y is being truncated at the fullstop.
Doing this in Java with Jetty and a servlet, I can get the full path
out and parse it correctly so is Lift misbehaving?
fullstop, eg: /x/3.1/y/1.11
To illustrate the issue, I created a new lift project and added the
following to the Boot:
LiftRules.dispatch.prepend {
case Req(List("x", x,"y", y), _, _) => () => Full(XmlResponse( <p>x={ x } y={ y } </p> ))
}
Pointing a browser at /x/3.1/y/1.11 returns: x=3.1 y=1
So y is being truncated at the fullstop.
Doing this in Java with Jetty and a servlet, I can get the full path
out and parse it correctly so is Lift misbehaving?
Leave a comment
on 2010-02-06 19:47 *
By github.importer
Imported from GitHub: http://github.com/dpp/liftweb/issues/23/find