tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Jung <rainer.j...@kippdata.de>
Subject Re: DO NOT REPLY [Bug 45026] Custom HTTP-Error codes get remapped to 500er codes
Date Sun, 18 May 2008 21:12:54 GMT
I already had a quick look at it when it was 44495 and couldn't see a 
bug right away.

I'll check again, including combining with your TC patch for the status 
text, and will report back via BZ.

Regards,

Rainer

bugzilla@apache.org schrieb:
> https://issues.apache.org/bugzilla/show_bug.cgi?id=45026
> 
> 
> --- Comment #4 from Mark Thomas <markt@apache.org>  2008-05-18 11:27:59 PST ---
> Rainer - this might be quicker for you to track down. The following patch
> ensures the correct status is returned but the body generated by Tomcat is
> disappearing somewhere (I suspect inside mod_jk).
> 
> Index: java/org/apache/jk/common/JkInputStream.java
> ===================================================================
> --- java/org/apache/jk/common/JkInputStream.java        (revision 657140)
> +++ java/org/apache/jk/common/JkInputStream.java        (working copy)
> @@ -278,6 +278,10 @@
>          } else {
>              message = message.replace('\n', ' ').replace('\r', ' ');
>          }
> +        if (message == null) {
> +            // mod_jk + httpd 2.x fails with a null status message - bug 45026
> +            message = Integer.toString(res.getStatus());
> +        }
>          tempMB.setString( message );
>          c2b.convert( tempMB );
>          outputMsg.appendBytes(tempMB);
> 
> 

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


Mime
View raw message