Bug 62737 - RewriteMap nesting
Summary: RewriteMap nesting
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 9
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 9.0.12
Hardware: All All
: P2 normal (vote)
Target Milestone: -----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-19 08:11 UTC by Remy Maucherat
Modified: 2018-09-19 14:46 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.