[ 
https://issues.apache.org/jira/browse/WICKET-3497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13004999#comment-13004999
 ] 

Frans Stofberg commented on WICKET-3497:
----------------------------------------

Sorry for carrying on in this but

There is no request.getfilterpath(), only WicketFilter.getfilterpath() which 
again only returns the first mapping in web.xml.

now according Peter Ertl who updated my other issue (WICKET-3518) wicket does 
not support multiple filter/servlet mappings.

I find this hard to accept as this was not an issue in 1.4.

only change I would suggest is to get the filterPrefix from the request instead 
of the web.xml (httpServletRequest.getServletPath())


I really don't think that we are the only ones utilising multiple mappings




> 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
>            Assignee: Igor Vaynberg
>         Attachments: getUrlTest.zip
>
>
> 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

Reply via email to