Mantis - Resin
Viewing Issue Advanced Details
2464 major always 02-28-08 10:58 03-20-08 14:58
zdavis  
ferg  
urgent  
closed 3.1.5  
fixed  
none    
none 3.1.6  
0002464: rewrite-dispatch duplicates query parameters
When using rewrite-dispatch to forward a request, the query string parameters get duplicated. For example:

<rewrite-dispatch>
    <forward regexp="^/s/(.*)" target="/$1" />
</rewrite-dispatch>

www.server.com/s/test.jsp?foo=bar will get rewritten to www.server.com/test.jsp?foo=bar&foo=bar.

The same outcome occurs using rewrite-filter in version 3.0.24.
 index.jsp [^] (492 bytes) 03-06-08 09:59
 web.xml [^] (564 bytes) 03-06-08 09:59

Notes
(0002817)
ferg   
03-05-08 09:36   
unable to reproduce - server/1kn{0,1}

Can you attach a simple JSP which duplicates the issue? I'm just seeing the expected behavior here.
(0002833)
zdavis   
03-06-08 10:02   
Following are the requests and corresponding outputs in the standalone webapp using 3.1.5 Resin. Find the attached web.xml and the simple jsp file that prints the following output. This was tested with a freshly installed resin 3.1.5 and only the two files.

http://localhost:8080/s/index.jsp?foo=bar [^]

Request Param [ foo ] value [ 0 ] = bar
Request Param [ foo ] value [ 1 ] = bar


http://localhost:8080/index.jsp?foo=bar [^]

Request Param [ foo ] value [ 0 ] = bar
(0002865)
ferg   
03-20-08 14:58   
server/1kn2