Activity log for bug #2068529

Date Who What changed Old value New value Message
2024-06-05 20:54:54 Wesley Hershberger bug added bug
2024-06-06 14:24:12 Paride Legovini apache2 (Ubuntu): status New Incomplete
2024-06-07 13:03:48 Mauricio Faria de Oliveira bug added subscriber Mauricio Faria de Oliveira
2024-06-07 13:29:22 Mauricio Faria de Oliveira apache2 (Ubuntu): status Incomplete New
2024-06-07 17:32:46 Wesley Hershberger description POST requests to an apache2 server with the below configuration do not forward the message body. 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/sites-enabled/test_proxy.conf ``` Listen 9443 <VirtualHost *:9443> ServerName focal.cld.lan ProxyRequests Off ProxyPass "/" "http://127.0.0.1:8899/" ProxyPassReverse "/" "http://127.0.0.1:8899/" ErrorLog ${APACHE_LOG_DIR}/testproxy-error.log CustomLog ${APACHE_LOG_DIR}/testproxy-access.log combined </VirtualHost> ``` sudo systemctl restart apache2 nc -k -l 8899 wget http://archive.ubuntu.com/ubuntu/dists/jammy-proposed/InRelease curl -d "@InRelease" -H "Content-type: text/plain" -X POST http://127.0.0.1:9443/ Curl hangs for a while until the request times out. 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/sites-enabled/test_proxy.conf ``` Listen 9443 <VirtualHost *:9443>         ServerName focal.cld.lan         ProxyRequests Off         ProxyPass "/" "http://127.0.0.1:8899/"         ProxyPassReverse "/" "http://127.0.0.1:8899/"         ErrorLog ${APACHE_LOG_DIR}/testproxy-error.log         CustomLog ${APACHE_LOG_DIR}/testproxy-access.log combined </VirtualHost> ``` sudo systemctl restart apache2 nc -k -l 8899 wget http://archive.ubuntu.com/ubuntu/dists/jammy-proposed/InRelease curl -d "@InRelease" -H "Content-type: text/plain" -X POST http://127.0.0.1:9443/ 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-Disposition: form-data; name=\"data\"" --form "data=${DATA}" -X POST -k -v http://127.0.0.1:9443 -vvv DATA=`tr -dc A-Za-z0-9 </dev/urandom | head -c 886; echo`; curl "Content-Disposition: form-data; name=\"data\"" --form "data=${DATA}" -X POST -k -v http://127.0.0.1:9443 -vvv
2024-06-07 17:33:00 Wesley Hershberger summary Focal: Reverse proxy POST with with body length >1000 is missing body Focal: Reverse proxy POST with with body length >1024 is missing body