You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2020/01/09 17:19:10 UTC

[Bug 64067] New: Allow more than one parameter when defining RewriteMaps

https://bz.apache.org/bugzilla/show_bug.cgi?id=64067

            Bug ID: 64067
           Summary: Allow more than one parameter when defining
                    RewriteMaps
           Product: Tomcat 9
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: felix.schumacher@internetallee.de
  Target Milestone: -----

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 64067] Allow more than one parameter when defining RewriteMaps

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64067

Felix Schumacher <fe...@internetallee.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|Linux                       |All
           Severity|normal                      |enhancement
           Hardware|PC                          |All
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Felix Schumacher <fe...@internetallee.de> ---
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(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org