Request.getUrl() not returning correct data
-------------------------------------------
Key: WICKET-3497
URL: https://issues.apache.org/jira/browse/WICKET-3497
Project: Wicket
Issue Type: Bug
Components: wicket-core
Affects Versions: 1.5-RC2
Environment: Linux, Firefox, IBM WebSphere 6.1
Reporter: Frans Stofberg
There are 2 parts to this issue
assume 2 servlet mappings in web.xml
- /app/*
- /longapp/*
1. Calling Request.getUrl().toString() use to (v 1.4.x) return everything after
the context root (eg app/somePage/). Now in 1.5 this only returns somePage
2. When multiple servlet mappings are specified in web.xml, only the first one
is loaded on servlet/filter startup. This causes problems when accessing the
app thru any of the mappings other than the first one.
[11/03/03 11:58:50:507 SAST] 00000028 WebApp E [Servlet
Error]-[wicket.getUrlTest]: java.lang.StringIndexOutOfBoundsException: String
index out of range: 17
at java.lang.String.substring(String.java:1067)
at
org.apache.wicket.protocol.http.servlet.ServletWebRequest.getUrl(ServletWebRequest.java:159)
at
org.apache.wicket.protocol.http.servlet.ServletWebRequest.<init>(ServletWebRequest.java:98)
at
org.apache.wicket.protocol.http.servlet.ServletWebRequest.<init>(ServletWebRequest.java:73)
at
org.apache.wicket.protocol.http.WebApplication.newWebRequest(WebApplication.java:384)
at
org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:133)
at
org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:137)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira