Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3295 | minor | always | 01-23-09 16:43 | 05-06-09 11:29 | |
|
|||||
Reporter: | ferg | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | |||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.1.10 | ||
|
|||||
Summary: | 0003295: getRequestURI and rewrite-dispatch | ||||
Description: |
(rep by Ethan Larson) <cluster> ... <web-app-default> <rewrite-dispatch> <dispatch /> </rewrite-dispatch> </web-app-default> <host id=""> <web-app id="/"> </web-app> </host> <host id="testhost" root-directory="webapps"> <web-app id="/"> <servlet-regexp url-regexp="/test/*" servlet-class="com.remilon.servlets.BasicTestServlet"> </servlet-regexp> </web-app> </host> </cluster> Servlet source code: public class BasicTestServlet implements Servlet { ... public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException { HttpServletRequest request = (HttpServletRequest)servletRequest; HttpServletResponse response = (HttpServletResponse)servletResponse; System.out.println("dest URI: " + request.getRequestURI()); System.out.println("dest URL: " + request.getRequestURL().toString()); response.getWriter().write("URI: " + request.getRequestURI()); response.flushBuffer(); } ... } With the rewrite-dispatch tag in place, I get this printed in the log for a request to http://testhost/test/some-page%3f.html: [^] dest URI: /test/some-page dest URL: http://testhost/test/some-page [^] When I comment out the rewrite-dispatch tag, I get the correct URL: dest URI: /test/some-page%3f.html dest URL: http://testhost/test/some-page%3f.html [^] Let me know if there's anything else I can do. |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|