Mantis - Resin
Viewing Issue Advanced Details
486 minor always 12-07-05 09:06 12-07-05 10:14
ferg  
 
urgent  
closed  
fixed  
none    
none 3.0.16  
0000486: directory rewriting modifies query parameters
(rep by Joshua Manton)


We have a legacy jsp file for completing surveys in our system. As you can see, if values for c (course) and t (term) the form will redirect. An email is created to direct people to this page with the query parameters filled in based on the course they took. The email url was created like this:

http://[domain].com/survey?c=x12.2322&t=20053 [^] (the survey directory is where the attached file lives, survey is not a servlet but a directory)

Now, I admit, this link should have a trailing slash after survey, but because of some strange ocurence this was never caught.

Resin was taking the link above and rewriting it with the slash after survey but, here is the crazy part, changing the query parameters to valid, yet different values (as if from some other request that got cached). We are in a load balanced situation and each server would return a different set of query parameters but always the same.

After a restart, they same url above would result in a 404.

There are no filters or servlets that have a mapping that would interfere with this request.

Notes
(0000522)
ferg   
12-07-05 10:14   
server/10r3