[Bug 64461] New: RewriteValve regression in 8.5.55

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 64461] New: RewriteValve regression in 8.5.55

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64461

            Bug ID: 64461
           Summary: RewriteValve regression in 8.5.55
           Product: Tomcat 8
           Version: 8.5.x-trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Catalina
          Assignee: [hidden email]
          Reporter: apache-bugzilla=[hidden email]
  Target Milestone: ----

Hi,

I'm using the Harbottle packages for tomcat
(tomcat8-8.5.55-1.el7.harbottle.x86_64
tomcat8-native-1.2.24-1.el7.harbottle.x86_64) on a CentOS 7 machine. I have a
RewriteValve configured with something structurally identical to this:

===
RewriteCond     %{ENV:orig_REQUEST_URI} ^[^/].*
RewriteRule     (.*)    $1      [E=orig_REQUEST_URI:%{REQUEST_URI}]

RewriteRule     ^/OldURI23(.*)  /NewerURIIsHere45$1
===

When accessing this directory (it is the docBase directory, and has an
index.html as main page), a 404 page is returned that
/NewerURIIsHere45/index.html is not found. Commenting out the last line, or the
first two lines and restarting tomcat will make it work again. If the last line
is changed to

RewriteRule     ^/OldURI23()(.*)        /NewerURIIsHere45$1$2

any access will throw an error that there is no group 2. Which suggests the
wrong regexp match is consulted here.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 64461] RewriteValve regression in 8.5.55

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64461

--- Comment #1 from apache-bugzilla=[hidden email] ---
PS. The same configuration was previously used with version 8.5.54, which
worked fine.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 64461] RewriteValve regression in 8.5.55

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=64461

Mark Thomas <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #2 from Mark Thomas <[hidden email]> ---


*** This bug has been marked as a duplicate of bug 64432 ***

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]