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

            Bug ID: 57863
           Summary: Can't get the matched pattern in RewriteValve
           Product: Tomcat 8
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: t.bessho0...@gmail.com

Created attachment 32692
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=32692&action=edit
patch against trunk.

Key of RewriteMap does not work correctly.

-----
ex) rewrite.config
RewriteCond %{HTTP_USER_AGENT} ^Mozilla.*
RewriteMap hoge com.hoge.HogeRewriteMap
RewriteRule /foo/(.*).html$ /bar/${hoge:$1}
-----

$1 does not refer to (.*).
Key is always used a fixed string $1.
As a result, URL after rewriting is /bar/null.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to