Bug 129391

Summary: [patch] mod_proxy-2.0.51 drops Content-Length
Product: [Fedora] Fedora Reporter: Jan Kratochvil <web-bugzilla.redhat.com>
Component: httpdAssignee: Joe Orton <jorton>
Severity: medium Docs Contact:
Priority: medium    
Version: 2CC: mattdm, redhat-bugzilla
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-06-04 02:40:33 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Description Flags
mod_proxy copied from CVS 2004-08-07
mod_proxy minimized+backported from CVS 2004-09-23 none

Description Jan Kratochvil 2004-08-07 13:59:47 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2)

Description of problem:
After proxy request:

POST ... HTTP/1.1
Transfer-Encoding: chunked
[missing Content-Length]

it will get passed as:

POST ... HTTP/1.1
[no Transfer-Encoding]
[no Connection]
[no Content-Length]

which gets (BTW I think incorrectly) interpreted as POST without any body.

Current httpd-2.1 CVS version proxy handles it by default using:

POST ... HTTP/1.1
[missing Transfer-Encoding]
Content-Length: real-value

after using "proxy-sendchunks" environment it will use:

POST ... HTTP/1.1
Transfer-Encoding: chunked
[missing Content-Length]

Both such resulting requests are compatible.

Attached patch just uses the current CVS snapshot of mod_proxy.
It obsoletes the older backport of mod_proxy in the current patch

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

How reproducible:

Steps to Reproduce:
1. Use SonyEricsson P900 mobile phone and specify Apache as its HTTP
2. Post some page.
3. See the webserver logs.

Actual Results:  CGI did not get any data input.

Expected Results:  CGI should get the input.

Additional info:
Comment 1 Jan Kratochvil 2004-08-07 14:01:14 EDT
Created attachment 102501 [details]
mod_proxy copied from CVS 2004-08-07
Comment 2 Jan Kratochvil 2004-09-28 09:34:48 EDT
Created attachment 104432 [details]
mod_proxy minimized+backported from CVS 2004-09-23
Comment 3 Matthew Miller 2005-04-26 11:10:59 EDT
Fedora Core 2 is now maintained by the Fedora Legacy project for
security updates only. If this problem is a security issue, please
reopen and reassign to the Fedora Legacy product. If it is not a
security issue and hasn't been resolved in the current FC3 updates or
in the FC4 test release, reopen and change the version to match.
Comment 4 Jan Kratochvil 2005-06-04 02:40:33 EDT
UPSTREAM as it is now being resolved for the next httpd official release: