You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2023/02/24 14:05:53 UTC
[tomcat] branch 8.5.x updated: Document additional RewriteMap types
This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push:
new c3d606313d Document additional RewriteMap types
c3d606313d is described below
commit c3d606313d2f3d496b0bc84daf41874fa06d8b2f
Author: remm <re...@apache.org>
AuthorDate: Fri Feb 24 15:03:49 2023 +0100
Document additional RewriteMap types
Since I looked at it a few days ago and after reading the docs.
Overall: probably good enough as it is now.
---
java/org/apache/catalina/valves/rewrite/RewriteValve.java | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/java/org/apache/catalina/valves/rewrite/RewriteValve.java b/java/org/apache/catalina/valves/rewrite/RewriteValve.java
index 67e5f8a8d3..d9c60b8430 100644
--- a/java/org/apache/catalina/valves/rewrite/RewriteValve.java
+++ b/java/org/apache/catalina/valves/rewrite/RewriteValve.java
@@ -681,7 +681,16 @@ public class RewriteValve extends ValveBase {
} else if (rewriteMapClassName.startsWith("rnd:")) {
map = new RandomizedTextRewriteMap(rewriteMapClassName.substring("rnd:".length()), true);
} else if (rewriteMapClassName.startsWith("prg:")) {
+ // FIXME: https://httpd.apache.org/docs/2.4/rewrite/rewritemap.html#prg
+ // Likely not worth implementing further since this is a simpler CGI
+ // piping stdin/stdout from an external native process
+ // Instead assume a class and use the RewriteMap interface
rewriteMapClassName = rewriteMapClassName.substring("prg:".length());
+ } else if (rewriteMapClassName.startsWith("dbm:")) {
+ // FIXME: https://httpd.apache.org/docs/2.4/rewrite/rewritemap.html#dbm
+ // Probably too specific to HTTP Server to implement
+ } else if (rewriteMapClassName.startsWith("dbd:") || rewriteMapClassName.startsWith("fastdbd:")) {
+ // FIXME: https://httpd.apache.org/docs/2.4/rewrite/rewritemap.html#dbd
}
if (map == null) {
try {
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org