You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2007/05/08 17:30:22 UTC

DO NOT REPLY [Bug 42355] New: - mod_jk in Apache 2.x always returns HTTP error code 500 instead of custom ones

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42355>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42355

           Summary: mod_jk in Apache 2.x always returns HTTP error code 500
                    instead of custom ones
           Product: Apache httpd-2
           Version: 2.2.4
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Other Modules
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: todorz@phantomfiber.com


We have tomcat4 applications and we use the jk connector. The applications
return custom 6xx HTTP error codes but it's not handled correctly with Apache
2.x and mod_jk combo. Initially the problem was noticed on the distro (Debian)
supplied apache 2.2.3 and mod_jk 1.2.18. I tried with apache 2.2.4 and 2.0.59
using jk 1.2.22 and 1.2.21 but the problem still exists. It works correctly with
apache 1.3 and all versions of mod_jk. Another thing is that it was working with
correctly with apache 2.0 and mod_jk2 (yes, jk2 that was dropped) before we
upgraded (from Debian 3.1 to 4.0), so this clearly seems to be a problem with
the apache 2.x version of mod_jk.


Here's an incorrect response:
-------------------------------
HTTP/1.1 500 Internal Server Error
Date: Mon, 07 May 2007 14:13:32 GMT
Server: Apache/2.2.3 (Debian) mod_jk/1.2.18
Content-Language: en-US
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html;charset=ISO-8859-1

2b2
<html><head><title>Apache Tomcat/4.1.36 - Error
report</title><STYLE><!--H1{font-family : sans-serif,Arial,Tahoma;color :
white;background-color : #0086b2;} H3{font-family :
sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;}
BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-color :
white;} B{color : white;background-color : #0086b2;} HR{color : #0086b2;}
--></STYLE> </head><body><h1>HTTP Status 608 - </h1><HR size="1"
noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b>
<u></u></p><p><b>description</b> <u>Cannot find message associated with key
http.608</u></p><HR size="1" noshade="noshade"><h3>Apache
Tomcat/4.1.36</h3></body></html>
0
-------------------------------



And here's a correct response:
-------------------------------
HTTP/1.1 614 
Date: Tue, 08 May 2007 15:24:02 GMT
Server: Apache/1.3.34 (Debian) mod_jk/1.2.18
Set-Cookie: JSESSIONID=A91C095EA65317F60FB67D711D6ECC86; Path=/Services
Content-Language: en-US
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html;charset=ISO-8859-1

2b2
<html><head><title>Apache Tomcat/4.1.36 - Error
report</title><STYLE><!--H1{font-family : sans-serif,Arial,Tahoma;color :
white;background-color : #0086b2;} H3{font-family :
sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;}
BODY{font-family : sans-serif,Arial,Tahoma;color : black;background-color :
white;} B{color : white;background-color : #0086b2;} HR{color : #0086b2;}
--></STYLE> </head><body><h1>HTTP Status 614 - </h1><HR size="1"
noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b>
<u></u></p><p><b>description</b> <u>Cannot find message associated with key
http.614</u></p><HR size="1" noshade="noshade"><h3>Apache
Tomcat/4.1.36</h3></body></html>
-------------------------------

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 42355] - Apache 1.3 permits non-rfc HTTP error code >= 600

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42355>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42355


wrowe@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|mod_jk in Apache 2.x always |Apache 1.3 permits non-rfc
                   |returns HTTP error code 500 |HTTP error code >= 600
                   |instead of custom ones      |




------- Additional Comments From wrowe@apache.org  2007-05-08 13:19 -------
Yes, should be transformed to 500.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 42355] - mod_jk in Apache 2.x always returns HTTP error code 500 instead of custom ones

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42355>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42355


nick@webthing.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Other Modules               |Connector:JK/AJP
            Product|Apache httpd-2              |Tomcat 4
            Version|2.2.4                       |Unknown




------- Additional Comments From nick@webthing.com  2007-05-08 09:35 -------
mod_jk belongs to tomcat, reclassifying.  I expect they might suggest you
upgrade to something more up-to-date, like apache mod_proxy.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 42355] - mod_jk in Apache 2.x always returns HTTP error code 500 instead of custom ones

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42355>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42355


rpluem@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Connector:JK/AJP            |core
            Product|Tomcat 4                    |Apache httpd-1.3
            Version|Unknown                     |1.3.34




------- Additional Comments From rpluem@apache.org  2007-05-08 13:14 -------
HTTP status codes above 600 are not specified by RFC2616 and thus regarded as
illegal values by httpd 2.0.x and up. Actually it is a BUG in httpd 1.3 that it
sends http return codes above 600.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org