Mantis - Resin
Viewing Issue Advanced Details
5862 minor always 03-04-15 21:06 03-30-15 16:29
nam  
ferg  
high  
closed 4.0.42  
fixed  
none    
none  
0005862: resin:SetHeader does not work if it comes before rewrite-dispatch
(rep by Yoon)

Doesn't work:
-------------------------------------------------------------------------------------
<web-app>
   <resin:SetHeader regexp="^/" name="TestSetHeader" value="true"/>

   <rewrite-dispatch>
      <set request-character-encoding="ISO-8859-1" regexp="^/index.jsp"/>
   </rewrite-dispatch>
</web-app>

Works:
-------------------------------------------------------------------------------------
<web-app>
   <rewrite-dispatch>
      <set request-character-encoding="ISO-8859-1" regexp="^/index.jsp"/>
   </rewrite-dispatch>

   <resin:SetHeader regexp="^/" name="TestSetHeader" value="true"/>
</web-app>

Notes
(0006604)
ferg   
03-30-15 16:29   
server/1kka

Note: the change is the addition of resin:SetRequestCharacterEncoding.

The new <resin:XXX> should not be mixed with the older <rewrite-dispatch>.

The purpose of <rewrite-dispatch> is only for backward compatibility.