Mantis - Resin
Viewing Issue Advanced Details
5418 minor always 04-12-13 08:39 11-05-14 15:44
cowan  
ferg  
normal  
closed 4.0.35  
unable to reproduce  
none    
none 4.0.42  
0005418: URL Rewrite Rules Lost After Webapp Deploy
It seems like the URL rewrite rules defined at the cluster level (and I
believe at other levels too) are not preserved after a deploy or
undeploy operation.

For example, starting with a stock installation of Resin Pro 4.0.35, and
two versions of a simple web app war file (containing a single
index.html file for its web content that does nothing more than display
some text in the body), performing the following will demonstrate the
issue:

- edit resin.properties, enabling webapp_multiversion_routing.

- edit resin.xml and add a rewrite rule directly underneath the 'app'
cluster: e.g.:
 <cluster id="app">
 ...
   <resin:NotFound regexp="^"><resin:IfSecure
value="false"/></resin:NotFound>

- start resin

- deploy and test version 1 of a simple web app. The rewrite rule should
work as expected, forcing a 404.

- deploy and test version 2 of your web app (without restarting resin).
The rewrite rule no longer takes effect. You will see your page.
Rep by D. Ziegelbein

Notes
(0006271)
ferg   
05-30-13 11:29   
server/1km{2-4]

So far unable to reproduce the problem.