Bug 89179 - mod_proxy (forward proxy) inserts empty line before header
mod_proxy (forward proxy) inserts empty line before header
Status: CLOSED ERRATA
Product: Red Hat Linux
Classification: Retired
Component: httpd (Show other bugs)
9
i686 Linux
medium Severity low
: ---
: ---
Assigned To: Joe Orton
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-04-19 06:08 EDT by Thomas Sailer
Modified: 2007-04-18 12:53 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-05-28 12:23:44 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Thomas Sailer 2003-04-19 06:08:09 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225

Description of problem:
Proxy configured with:

<Location /vdradmin/>
    ProxyPass http://127.0.0.1:8001/
</Location>

Apache's response is:

HTTP/1.1 401

Date: Sat, 19 Apr 2003 09:39:10 GMT
Server: vdradmind/0.13
WWW-Authenticate: Basic realm="Privat"
Content-type: text/html; charset=ISO-8859-1
Content-Length: 369
Connection: close

The empty line between the HTTP and the Date line prevents any browser from
interpreting the header. The empty line is only inserted if the webserver the
proxy points to does not send any text after the response number (i.e. "HTTP/1.1
401" instead of "HTTP/1.1 401 Authorization Required").

httpd-2.0.40-11.3 sends a line of garbage characters instead of an empty line.


Version-Release number of selected component (if applicable):
httpd-2.0.40-21.1

How reproducible:
Always

Steps to Reproduce:
configure a proxy to any web server that does not send text after the response
number, and then
telnet localhost 80
GET /vdradmin/ HTTP/1.0



Actual Results:
HTTP/1.1 401

Date: Sat, 19 Apr 2003 09:39:10 GMT
Server: vdradmind/0.13
WWW-Authenticate: Basic realm="Privat"
Content-type: text/html; charset=ISO-8859-1
Content-Length: 369
Connection: close


Expected Results:
HTTP/1.1 401
Date: Sat, 19 Apr 2003 09:39:10 GMT
Server: vdradmind/0.13
WWW-Authenticate: Basic realm="Privat"
Content-type: text/html; charset=ISO-8859-1
Content-Length: 369
Connection: close

or an error message ("BadProxy" or similar)

Additional info:
Comment 1 Joe Orton 2003-05-19 06:07:18 EDT
Thanks for the report.  This will be fixed for the next erratum.
Comment 2 Mark J. Cox (Product Security) 2003-05-28 12:23:44 EDT
An errata has been issued which should help the problem described in this bug report. 
This report is therefore being closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, please follow the link below. You may reopen 
this bug report if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2003-186.html

Note You need to log in before you can comment on or make changes to this bug.