Focal: Reverse proxy POST with with body length >1024 is missing body
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apache2 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
POST requests to an apache2 server with the below configuration do not forward the message body if it is larger than 1024 bytes.
Affected versions:
apache2 2.4.41-4ubuntu3.17 in focal
Steps to reproduce:
sudo apt-get install apache2
sudo a2enmod proxy
sudo a2enmod proxy_http
Add /etc/apache2/
```
Listen 9443
<VirtualHost *:9443>
ServerName focal.cld.lan
ProxyPass "/" "http://
ErrorLog ${APACHE_
CustomLog ${APACHE_
</VirtualHost>
```
sudo systemctl restart apache2
nc -k -l 8899
wget http://
curl -d "@InRelease" -H "Content-type: text/plain" -X POST http://
Curl hangs for a while until the request times out.
EDIT: The first curl here succeeds, the second does not:
DATA=`tr -dc A-Za-z0-9 </dev/urandom | head -c 885; echo`; curl "Content-
DATA=`tr -dc A-Za-z0-9 </dev/urandom | head -c 886; echo`; curl "Content-
Hello Wesley, just to be sure: is this something you are going to work at (please assign the bug to yourself in this case), or do you expect the server team to work at this?
In any case I have a couple of questions:
- How do you determine that the problem happens with "body length >1000"? I don't see that in the bug description.
- How does apache2 from Jammy or later releases behave? Is the issue fixed there?
Thanks!