-
1. Re: HTTP Status code 308 is converted in HTTP 500
nichele Jul 18, 2011 2:46 AM (in response to nichele)Hi all,
small update...
I did a test just using mod_proxy (without mod_cluster) and I have the same issue :-(.
If someone wants to try, i'm using just a jsp with this content to replicate the issue:
<%
response.setStatus(308);
%>
Any help is welcome in any case...
ste
-
2. Re: HTTP Status code 308 is converted in HTTP 500
jfclere Jul 18, 2011 10:38 AM (in response to nichele)In the validate_status_line() in modules/http/http_filters.c needs to be more tolerant:
look to the httpd-trunk code:
+++
static void validate_status_line(request_rec *r)
{
char *end;
if (r->status_line) {
int len = strlen(r->status_line);
if (len < 3
|| apr_strtoi64(r->status_line, &end, 10) != r->status
|| (end - 3) != r->status_line
|| (len >= 4 && ! apr_isspace(r->status_line[3]))) {
r->status_line = NULL;
}
/* Since we passed the above check, we know that length three
* is equivalent to only a 3 digit numeric http status.
* RFC2616 mandates a trailing space, let's add it.
*/
else if (len == 3) {
r->status_line = apr_pstrcat(r->pool, r->status_line, " ", NULL);
}
}
}
+++
-
3. Re: HTTP Status code 308 is converted in HTTP 500
jfclere Jul 18, 2011 10:43 AM (in response to jfclere) -
4. Re: HTTP Status code 308 is converted in HTTP 500
nichele Jul 18, 2011 10:58 AM (in response to jfclere)That's a really really useful info !! (both, the suggested code and the link to httpd bug).
many thanks, i'll evaluate a possible fix in apache or in tomcat.