Maybe this was mentioned earlier: vmassol [reported the issue|https://github.com/paultuckey/urlrewritefilter/issues/246] in the URLRewriteFilter tracker. As far as I understand from paultuckey's recent comments (creator of the lib), a fix is doable, just not implemented yet.
[~vmassol] you suggested to report the issue directly to Tomcat's Bugzilla, which seems like a good idea indeed. Would something like the report below describe the improvement request accurately? {quote}Title: Add ability to rewrite outbound URLs
Description: The recently introduced RewriteValve allows to rewrite inbound URLs. This ticket proposes to implement in addition the ability to rewrite outbound URLs. This would allow to support the same types of rules as [ URLRewriteFilter |https://github.com/paultuckey/urlrewritefilter] was supporting up to Tomcat 9 and does not anymore due to the early mapping [ now done very early in Coyote |https://github.com/apache/tomcat/blob/7d3d359aaa8b7fe9463a73915340a347ad5e4614/java/org/apache/catalina/connector/CoyoteAdapter.java#L354] which prevents the filter to be applied. {quote}
The only issue I could find currently in Tomcat's bug tracker about URL rewriting is an old one covering a distinct need: [RewriteValve: Implement additional RewriteRule directive capabilities|https://bz.apache.org/bugzilla/show_bug.cgi?id=58052]. |
|