Anonymous | Login | Signup for a new account | 12-17-2024 10:54 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0003295 | [Resin] | minor | always | 01-23-09 16:43 | 05-06-09 11:29 | ||||
Reporter | ferg | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | Platform | |||||
Status | closed | OS | |||||||
Projection | none | OS Version | |||||||
ETA | none | Fixed in Version | 3.1.10 | Product Version | |||||
Product Build | |||||||||
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 | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed. 26 unique queries executed. |