Bug 62737

Summary: RewriteMap nesting
Product: Tomcat 9 Reporter: Remy Maucherat <remm>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 9.0.12   
Target Milestone: -----   
Hardware: All   
OS: All   

Description Remy Maucherat 2018-09-19 08:11:19 UTC
RewriteRule .* ${portals:%{HTTP_HOST}}

Gives in catalin.oput startup file:
Caused by: java.lang.IllegalArgumentException: %{HTTP_HOST

portals is a rewritemap type and we have tested that it works if we replace the %{HTTP_HOST} variable with a hardcoded value, it works correct.

Comment: curly braces nesting looks to be a bit more difficult, it is possible it will not get done.
Comment 1 Remy Maucherat 2018-09-19 14:46:22 UTC
The implementation for these sort of nesting will be in 9.0.13 and 8.5.35 along with a test case.