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: [email protected]
Reporter: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]