www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jon *" <...@clearink.com>
Subject Re: mod_jserv/4791: http status values are dropped by c side of ajp11
Date Tue, 03 Aug 1999 17:40:01 GMT
The following reply was made to PR mod_jserv/4791; it has been noted by GNATS.

From: "jon *" <jon@clearink.com>
To: henri@asu.edu
Cc: apbugs@hyperreal.org
Subject: Re: mod_jserv/4791: http status values are dropped by c side of
	 ajp11
Date: Tue, 03 Aug 1999 10:34:06 -0700

 ----------
 From: Michal Mosiewicz <mimo@interdata.com.pl>
 To: Java Apache <java-apache@list.working-dogs.com>
 Subject: Re: FW: mod_jserv/4791: http status values are dropped by c side
 of  ajp11
 Date: Tue, 03 Aug 1999 11:21:06 +0200
 
 
 Hmm, it seems like it's a feature, not a bug.
 
     /* Check for our Error headers */
     if (header=ap_table_get(r->err_headers_out, "Servlet-Error")) {
         /* Backup the original status */
         int status=r->status;
 
         /* Close buffer and kill timeouts */
         ap_bclose(buffsocket);
         ap_kill_timeout(r);
 
         /* Log error to Apache logfile */
         jserv_error(JSERV_LOG_ERROR,cfg,"ajp12: Servlet Error:
 %s",header);
 
         /* Remove headers and return */
         ap_table_unset(r->err_headers_out, "Servlet-Error");
         r->status = HTTP_OK;
         r->status_line = NULL;
         return status;
     }
 
 First, servlet-error seem to be used only internally to pass error
 messages to be logged by apache. If somebody want's to set a custom
 status response, he (or she :-) should use setStatus() method which
 passes the status as normal status header. What we can only try to set
 here is 500 Internal Server Error in case of response having
 Servlet-Error set, instead of HTTP_OK.
 
 Mike
 
 --
 WWW: http://www.lodz.pdi.net/~mimo  tel: Int. Acc. Code + 48 42 2148340
 add: Michal Mosiewicz  *  Bugaj 66 m.54 *  95-200 Pabianice  *   POLAND
 

Mime
View raw message