Package: apache2.2-common
Version: 2.2.3-3.3
Severity: important

The version of Apache which ships with Etch sends back the document
specified in the ErrorDocument directive with a Content-length header of
0 and a Content-type header with a value other than text/html, which
causes the browser to either display an empty document or offer to
download the (empty) document to the file system on the client machine.
 Apache on earlier versions of Debian did not exhibit this behavior,
though I'm not sure when it was introduced (hadn't used Debian for a
while, and I'm in the process of building a new Debian server).

This bug prevents the server from informing the user what went wrong and
whom to contact when a script fails unexpectedly.

This is probably related to Apache bug 39710
(http://issues.apache.org/bugzilla/show_bug.cgi?id=39710).

To reproduce:

1. Install the following script as barf.py in the /cgi-bin directory:

#!/usr/bin/python
raise Exception("barfing")

2. Make sure the ErrorDocument 500 directive points to a real document.

3. Invoke the URL for the script:

$ curl -i http://localhost/cgi-bin/barf.py
HTTP/1.1 500 Internal Server Error
Date: Mon, 26 Feb 2007 21:16:17 GMT
Server: Apache/2.2.3 (Debian)
Content-Length: 0
Connection: close
Content-Type: text/x-python

On all my other servers, Content-length is non-zero and Content-type is
text/html.

-- 
Bob Kline
http://www.rksystems.com
mailto:[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to