| If that change make us spec compliant and
| mod_rewrite compatible, I'll be OK, but may be 
| we should all review code change before commit ?
| 
| Also what about IIS/NES/DOMINO in such case ?

Attached is what I propose.  I can't speak for
the other servers, and neither one of our changes
would have any effect on them.

Keith
Index: mod_jk.c
===================================================================
RCS file: /home/cvs/jakarta-tomcat/src/native/mod_jk/apache1.3/mod_jk.c,v
retrieving revision 1.16
diff -u -b -r1.16 mod_jk.c
--- mod_jk.c    2001/09/14 17:47:58     1.16
+++ mod_jk.c    2001/09/17 12:38:19
@@ -437,30 +437,14 @@
     s->is_chunked   = r->read_chunked;
     s->no_more_chunks = 0;
     s->query_string = r->args;
-    s->req_uri      = r->uri;
 
-    if (conf->options & JK_OPT_FWDUNPARSED) {
     /*
      * The 2.2 servlet spec errata says the uri from
      * HttpServletRequest.getRequestURI() should remain encoded.
      * [http://java.sun.com/products/servlet/errata_042700.html]
      * 
-     * we follow spec in that case but can't use mod_rewrite
      */
-        s->req_uri      = r->unparsed_uri;
-        if (s->req_uri != NULL) {
-            char *query_str = strchr(s->req_uri, '?');
-            if (query_str != NULL) {
-                *query_str = 0;
-            }
-        }
-    }
-    else {
-    /*
-     * we don't follow spec but we can use mod_rewrite
-     */
-        s->req_uri      = r->uri;
-    }
+    s->req_uri      = ap_escape_uri(r->pool, r->uri);
 
     s->is_ssl       = JK_FALSE;
     s->ssl_cert     = NULL;
@@ -771,9 +755,7 @@
             action = *(w++);
         }
 
-        if (!strcasecmp(w, "ForwardUnparsedUri"))
-            opt = JK_OPT_FWDUNPARSED;
-        else if (!strcasecmp(w, "ForwardKeySize"))
+        if (!strcasecmp(w, "ForwardKeySize"))
             opt = JK_OPT_FWDKEYSIZE;
         else
             return ap_pstrcat(cmd->pool, "JkOptions: Illegal option '", w, "'", NULL);
@@ -876,8 +858,6 @@
     /*
      * Options to tune mod_jk configuration
      * for now we understand :
-     * +ForwardUnparsed   => Forward URI as unparsed, spec compliant but broke 
mod_rewrite
-     * -ForwardUnparsed   => Forward URI normally, less spec compliant but 
mod_rewrite compatible
      * +ForwardSSLKeySize => Forward SSL Key Size, to follow 2.3 specs but may broke 
old TC 3.2
      * -ForwardSSLKeySize => Don't Forward SSL Key Size, will make mod_jk works with 
all TC release 
      */

Reply via email to