Mantis Bugtracker
  

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

- Relationships

- Notes
(0003903)
ferg
03-18-09 19:13

server/1ks{8,9}
 
(0003965)
ferg
04-22-09 13:26

reopen for 3.1.9
 

- Issue History
Date Modified Username Field Change
01-23-09 16:43 ferg New Issue
03-18-09 19:13 ferg Note Added: 0003903
03-18-09 19:13 ferg Assigned To  => ferg
03-18-09 19:13 ferg Status new => closed
03-18-09 19:13 ferg Resolution open => fixed
03-18-09 19:13 ferg Fixed in Version  => 4.0.0
04-22-09 13:26 ferg Note Added: 0003965
04-22-09 13:26 ferg Status closed => acknowledged
05-06-09 11:29 ferg Status acknowledged => closed
05-06-09 11:29 ferg Fixed in Version 4.0.0 => 3.1.10


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker