Thanks for the note Mauricio. The bug is not present in Jammy.
I've edited the bug description to include a reproducer that reflects the message length limit. ** Description changed: POST requests to an apache2 server with the below configuration do not - forward the message body. + 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 + ServerName focal.cld.lan - ProxyRequests Off - ProxyPass "/" "http://127.0.0.1:8899/" - ProxyPassReverse "/" "http://127.0.0.1:8899/" + 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 + 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 ** Summary changed: - Focal: Reverse proxy POST with with body length >1000 is missing body + Focal: Reverse proxy POST with with body length >1024 is missing body -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2068529 Title: Focal: Reverse proxy POST with with body length >1024 is missing body To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/2068529/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs