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 2019/04/19 15:00:28 UTC
[Bug 63366] New: POST body is empty when REQUEST is send with
transfer-encoding:chunked
https://bz.apache.org/bugzilla/show_bug.cgi?id=63366
Bug ID: 63366
Summary: POST body is empty when REQUEST is send with
transfer-encoding:chunked
Product: Apache httpd-2
Version: 2.4.39
Hardware: All
OS: Linux
Status: NEW
Severity: blocker
Priority: P2
Component: mod_proxy_fcgi
Assignee: bugs@httpd.apache.org
Reporter: massimiliano.cuttini@phoenixweb.it
Target Milestone: ---
The POST raw data is completly empty when the POST is sent with
"transfer-encoding: chunked". Read POST raw data as a stream should be the
right way to handle this kind of transfer enconding, however it's completly
useless.
<?php
$fp = fopen('php://input', 'rb');
stream_filter_append($fp, 'dechunk', STREAM_FILTER_READ);
$POST = stream_get_contents($fp);
?>
$POST is always empty if the request received has "transfer-econding:chuncked".
Same issue could be seen into all kind of handler:
- PHP CGI
- PHP FCGI
- PHP FCGI with FPM
This bug seems the consequences of this one:
https://bz.apache.org/bugzilla/show_bug.cgi?id=57087
However this is a more specific error and relates to more big issue.
Infact, by definition, with "transfer chuncked" there is no CONTENT-LENGTH at
all and it's right that this it's not present. So, I would say that missing the
CONTENT-LENGTH is right due to the design of the transfer chunked encoding.
Here the issue is not about the CONTENT-LENGTH but instead the issue is that
the stream is not available in the php://input and is not readable causing
dataloss on the POST value.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 63366] POST body is empty when REQUEST is send with transfer-encoding:chunked
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63366
Thiago Atauri Turini <tu...@outlook.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|mod_proxy_fcgi |All
Version|2.4.39 |2.5-HEAD
Status|NEW |RESOLVED
OS|Linux |All
Priority|P2 |P1
Severity|blocker |normal
Resolution|--- |WONTFIX
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 63366] POST body is empty when REQUEST is send with
transfer-encoding:chunked
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63366
--- Comment #3 from Felix Schwarz <fe...@oss.schwarz.eu> ---
Can you try again with Apache 2.4.47+ and "SetEnv proxy-sendcl 1" ? As bug
57087 is fixed now I think this should just work.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 63366] POST body is empty when REQUEST is send with transfer-encoding:chunked
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63366
--- Comment #4 from AndrĂ¡s Parditka <an...@gmail.com> ---
(In reply to Felix Schwarz from comment #3)
> Can you try again with Apache 2.4.47+ and "SetEnv proxy-sendcl 1" ? As bug
> 57087 is fixed now I think this should just work.
This solved the issue for me.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 63366] POST body is empty when REQUEST is send with
transfer-encoding:chunked
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63366
--- Comment #2 from kisscool82@hotmail.com ---
I'm encountering the same bug. Please help us :(
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 63366] POST body is empty when REQUEST is send with
transfer-encoding:chunked
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63366
--- Comment #1 from kisscool82@hotmail.com ---
I'm encountering the same bug. Please help us :(
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 63366] POST body is empty when REQUEST is send with
transfer-encoding:chunked
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63366
--- Comment #3 from Ankur Joshi <ne...@gmail.com> ---
Visit This page may help you thankyou!!!...
https://funnygroupnames.xyz/
https://www.newgrouplink.com/
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org