You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Gomez Henri <ne...@slib.fr> on 2001/09/28 12:51:31 UTC
mod_rewrite and mod_jk
Hi to all,
We're working on the mod_jk (tomcat connector) issue about URI encoding .
In later version we were using ap_espace_uri but it's still not the could
solution
and we'd like to know how we could determine if a request has allready
handled
by mod_rewrite (In Apache 1.3 and 2.0 ) ?
>From mod_jk for Apache 1.3 found in jakarta-tomcat-connectors :
s->method = (char *)r->method;
s->content_length = get_content_length(r);
s->is_chunked = r->read_chunked;
s->no_more_chunks = 0;
s->query_string = r->args;
/*
* The 2.2 servlet spec errata says the uri from
* HttpServletRequest.getRequestURI() should remain encoded.
* [http://java.sun.com/products/servlet/errata_042700.html]
*
*/
s->req_uri = ap_escape_uri(r->pool, r->uri);
s->is_ssl = JK_FALSE;
s->ssl_cert = NULL;
s->ssl_cert_len = 0;
s->ssl_cipher = NULL; /* required b
Re: mod_rewrite and mod_jk
Posted by "William A. Rowe, Jr." <wr...@covalent.net>.
If you look at ap_process_request_internal() the request is unescaped
once and only once before mod_jk takes a crack at translate_name.
Your code below appears correct, so IMHO if mod_rewrite gives you some
unescaped URI, mod_rewrite is likely broken. There would really be no
way to 'tell' if a broken mod_rewrite put its hands on such a URI.
Bill
----- Original Message -----
From: "Gomez Henri" <ne...@slib.fr>
To: <de...@httpd.apache.org>
Sent: Friday, September 28, 2001 5:51 AM
Subject: mod_rewrite and mod_jk
> Hi to all,
>
> We're working on the mod_jk (tomcat connector) issue about URI encoding .
>
> In later version we were using ap_espace_uri but it's still not the could
> solution
> and we'd like to know how we could determine if a request has allready
> handled
> by mod_rewrite (In Apache 1.3 and 2.0 ) ?
>
> >From mod_jk for Apache 1.3 found in jakarta-tomcat-connectors :
>
> s->method = (char *)r->method;
> s->content_length = get_content_length(r);
> s->is_chunked = r->read_chunked;
> s->no_more_chunks = 0;
> s->query_string = r->args;
>
> /*
> * The 2.2 servlet spec errata says the uri from
> * HttpServletRequest.getRequestURI() should remain encoded.
> * [http://java.sun.com/products/servlet/errata_042700.html]
> *
> */
> s->req_uri = ap_escape_uri(r->pool, r->uri);
>
> s->is_ssl = JK_FALSE;
> s->ssl_cert = NULL;
> s->ssl_cert_len = 0;
> s->ssl_cipher = NULL; /* required b
>
>
>