You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Tomasz Skutnik <sc...@e-point.pl> on 2000/10/09 11:48:48 UTC
mod_jserv
Hi everyone.
Can someone tell me, who is responsible for developing mod_jserv.c ?
I've just made a patch to mod_jserv.c to allow it to process
url-rewritten (session-appended) requests properly. Now it recognizes
proper mount point even if session is url-appended (at least for what I
tested). Here's the patch:
--- mod_jserv.orig Mon Oct 9 11:48:20 2000
+++ mod_jserv.c Thu Oct 5 17:26:34 2000
@@ -1419,6 +1419,19 @@
req->zone=mount->zone;
req->servlet=ap_pstrdup(r->pool,tmp);
return req;
+ } else if (uri[x]==';') {
+ if ((mnt[y]=='\0') || (mnt[y]=='/' && mnt[y+1]=='\0')) {
+ // directory with session
+ req=(jserv_request
*)ap_pcalloc(r->pool,sizeof(jserv_request));
+ req->isdir=JSERV_TRUE;
+ req->mount=mount;
+ req->zone=mount->zone;
+ req->servlet=NULL;
+ // Special - put session id in path_info
+ r->path_info = ap_pstrdup(r->pool,uri+x);
+ uri[x]='\0';
+ return req;
+ }
}
/* Otherwise what we parsed was not our business */
Commit it if you find it usefull, and let me know about it.
Scooter.