[1.4.3] RequestUtils.toAbsolutePath("") skips the last value
------------------------------------------------------------
Key: WICKET-2586
URL: https://issues.apache.org/jira/browse/WICKET-2586
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 1.4.3
Reporter: smallufo
The code is following :
WebApplication :
mountBookmarkablePage("/TestPage" , TestPage.class);
TestPage.html :
url = <span wicket:id="url"></span>
TestPage.java :
final String url = RequestUtils.toAbsolutePath("");
add(new Label("url" , Model.of(url)));
If I open
http://foobar:8080/quickstart/app/TestPage
it shows http://foobar:8080/quickstart/app/TestPage , correct
if I open http://foobar:8080/quickstart/app/TestPage/a/b/
it shows : http://foobar:8080/quickstart/app/TestPage/a/b/ , correct
BUT ,
if I open http://foobar:8080/quickstart/app/TestPage/a/b
it shows : http://foobar:8080/quickstart/app/TestPage/a , WRONG
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.