httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 39710] New: - mod_cgi truncates error replies
Date Fri, 02 Jun 2006 22:22:34 GMT
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=39710>.
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=39710

           Summary: mod_cgi truncates error replies
           Product: Apache httpd-2
           Version: 2.2.2
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: regression
          Priority: P2
         Component: mod_cgi
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: chip@force-elite.com


A 500 ISE page is not send to clients with mod_cgi, which there is an invalid
CGI.  With mod_cgid the correct output is generated.

To repo:
echo "foo" > foo.cgi

With mod_cgi the output to a client is:
% curl -is --compressed http://example.com/foo.cgi

HTTP/1.1 500 Internal Server Error
Date: Fri, 02 Jun 2006 22:21:49 GMT
Server: Apache/2.2.2 (Unix) mod_ssl/2.2.2 OpenSSL/0.9.7a
Content-Length: 0
Connection: close
Content-Type: text/plain

A zero byte reply. However, just swap the LoadModule to mod_cgid, and restart,
and the reply is this:
HTTP/1.1 500 Internal Server Error
Date: Fri, 02 Jun 2006 22:18:36 GMT
Server: Apache/2.2.2 (Unix) mod_ssl/2.2.2 OpenSSL/0.9.7a
Vary: Accept-Encoding
Content-Length: 653
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
....
etc.

-- 
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


Mime
View raw message