Bug 64067

Summary: Allow more than one parameter when defining RewriteMaps
Product: Tomcat 9 Reporter: Felix Schumacher <felix.schumacher>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: P2    
Version: unspecified   
Target Milestone: -----   
Hardware: All   
OS: All   

Description Felix Schumacher 2020-01-09 17:19:10 UTC
The current implementation of configuring RewriteMaps allows only one parameter that must not contain spaces.

It would be nice to support more than one parameter and enable parameters to contain spaces.

With such an enhancement a definition of a RewriteMap could be done like the following example

RewriteMap tc example.TimeConvert UTC "CET"

Where the second quotes could be left out as they don't guard space characters.
Comment 1 Felix Schumacher 2020-01-09 17:36:30 UTC
commit b978b2c83ffe1be0670f47ccab0cbfaebdaba694
AuthorDate: Fri Nov 1 16:52:52 2019 +0100

    Allow more quoted tokens for RewriteValve config
    
    Along with quoted token parsing, RewriteMaps can have more than one
    parameter now.
    
    Bugzilla Id: 64067
    Part of #221
---
 .../valves/rewrite/QuotedStringTokenizer.java      | 135 +++++++++++++++++++++
 .../apache/catalina/valves/rewrite/RewriteMap.java |  18 +++
 .../catalina/valves/rewrite/RewriteValve.java      |   2 +-
 .../valves/rewrite/TestQuotedStringTokenizer.java  |  71 +++++++++++
 webapps/docs/changelog.xml                         |   4 +
 webapps/docs/rewrite.xml                           |   6 +-
 6 files changed, 234 insertions(+), 2 deletions(-)