Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-167

ASF Bug 57863 – Can't get the matched pattern in RewriteValve Fix the RewriteMap support in RewriteValve that did not use the correct key value to look up entries.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • JWS 3.0.1 GA
    • JWS 3.0.1 DR1
    • tomcat8
    • None
    • Release Notes
    • Documented as Resolved Issue

      ASF Bug 57863 – Can't get the matched pattern in RewriteValve Fix the RewriteMap support in RewriteValve that did not use the correct key value to look up entries.

      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.

      https://bz.apache.org/bugzilla/show_bug.cgi?id=57863
      http://svn.apache.org/viewvc?view=revision&revision=1676619

              rhn-support-csutherl Coty Sutherland
              dknox_jira David Knox (Inactive)
              Filip Goldefus Filip Goldefus (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: