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 2015/04/28 08:09:58 UTC
[Bug 57863] New: Can't get the matched pattern in RewriteValve
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.bessho0331@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 57863] Can't get the matched pattern in RewriteValve
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57863
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Thanks for the analysis and the patch.
I have committed a slight variation (allow for $10+) and added some test cases.
The fix has been made in trunk (for 9.0.x) and tc8.0.x/trunk for 8.0.22
onwards.
--
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