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 2003/11/24 14:24:39 UTC

DO NOT REPLY [Bug 21561] - jk_uriEnv.c version 1.49 does not handle uri's with asterix

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21561>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21561

jk_uriEnv.c version 1.49 does not handle uri's with asterix

stefan.proels@gmx.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|jk_uriEnv.c version 1.49    |jk_uriEnv.c version 1.49
                   |does not handle uri's with  |does not handle uri's with
                   |asterix                     |asterix



------- Additional Comments From stefan.proels@gmx.de  2003-11-24 13:24 -------
I've also encountered this bug after switching from JK2 of Tomcat 4.1.27 to
4.1.29. Thanks to this bug report which pointed me to the right file I could
track down the problem. Here is a patch against the 4.1.29 distribution to fix
this problem.

-----------------------------------------------
--- old_jk_uriEnv.c     2003-11-24 13:43:30.000000000 +0100
+++ jk_uriEnv.c 2003-11-24 14:13:16.000000000 +0100
@@ -445,6 +445,7 @@

     if (uri[strlen(uri) - 1] == '*') {
         /* context based /context/prefix/ASTERISK  */
+        uri[strlen(uri) - 1] = '\0';
         uriEnv->suffix      = NULL;
         uriEnv->prefix      = uri;
         uriEnv->prefix_len  =strlen( uriEnv->prefix );
-----------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org