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:42 UTC
[tomcat] branch 9.0.x updated: Document additional RewriteMap types
This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 3e4b4cc2ef Document additional RewriteMap types
3e4b4cc2ef is described below
commit 3e4b4cc2ef39a679c88031c50c0e21252892ccbb
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 a5c9228c11..341077b8ae 100644
--- a/java/org/apache/catalina/valves/rewrite/RewriteValve.java
+++ b/java/org/apache/catalina/valves/rewrite/RewriteValve.java
@@ -620,7 +620,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