Mantis - Resin
Viewing Issue Advanced Details
4490 minor always 04-08-11 18:04 04-11-11 15:40
mhixson  
ferg  
normal  
closed 4.0.17  
fixed  
none    
none 4.0.17  
0004490: Duplicated request parameters with <rewrite-dispatch><forward>
This is basically the same as 0004431: http://bugs.caucho.com/view.php?id=4431 [^]

In this case, instead of:

  <resin:Forward regexp="^/foo$" target="/bar?a=1" />

I do:

  <rewrite-dispatch>
    <forward regexp="^/foo$" target="/bar?a=1" />
  </rewrite-dispatch>

and I have a servlet:

  @WebServlet(urlPatterns="/bar")

and I request:

  /foo?a=2

Then request.getParameterValues("a") gives:

  [2, 1, 2]

See the other bug report for more explanation.
I don't know your policy on accepting patches, but I'm uploading one anyway. I'd be happy to modify if you feel like doing a review.
 patch.txt [^] (6,283 bytes) 04-08-11 18:04

Notes
(0005188)
ferg   
04-11-11 15:40   
server/1knc

Same fix for the previous bug report also fixes this configuration.