Red Hat Bugzilla – Bug 43080
mod_bandwidth breaks POSTs to Action/AddHandler cgis
Last modified: 2007-04-18 12:33:30 EDT
Description of Problem:
If mod_bandwidth is loaded as a module, even if it is not used, it will cause none of the html form POST data to be passed on the STDIN to the cgi which is called using the Action/AddHandler configs. This will prevent PHP from receiving form POST data if it is run as a cgi instead of as a module.
How Reproducible: every time
Steps to Reproduce:
Make sure that mod_bandwidth is loaded:
LoadModule bandwidth_module modules/mod_bandwidth.so
Set up a handler.
Action test-script /cgi-bin/form.cgi
AddHandler test-script .testcgi
Create a form.cgi script such as:
echo "content-type: text/plain"
echo "---- STDIN ----"
4. Create a file with the extension that will trigger the handler, such as junk.testcgi. It doesn't matter what's in the file, since we won't be processing it.
5. Create a form to post to junk.testcgi.
------- test.html ---------
<form action=junk.testcgi method=POST>
<input type=text name=MYVAR value="foo">
<input type=submit value=submit>
Now when you go to this form and submit it, it will not show any information below the "------STDIN-----" line in form.cgi.
It should show the post data below the "-------STDIN--------" line.
If you change the form to containt "action=/cgi-bin/form.cgi", the data will be correctly passed to the cgi, so that it will print out the post vars below the "-------STDIN------" line. Therefore, it is just a problem with the Action/ AddHandler configs and mod_bandwidth.
Thanks for the report. This is a mass bug update; since this release
of Red Hat Linux is no longer supported, please either:
a) try and reproduce the bug with a supported version of Red Hat
Enterprise Linux or Fedora Core, and re-open this bug as appropriate
after changing the Product field, or,
b) if relevant, try and reproduce this bug using the current version
of the upstream package, and report the bug upstream.