Received: (qmail 7545 invoked by uid 501); 31 May 2001 16:39:26 -0000 Message-Id: <20010531163926.7530.qmail@apache.org> Date: 31 May 2001 16:39:26 -0000 From: Edwin Grubbs Reply-To: egrubbs@rackspace.com To: submit@bugz.apache.org Subject: mod_bandwidth breaks POSTs to Action/AddHandler cgis X-Send-Pr-Version: 3.110 >Number: 7794 >Category: mod_actions >Synopsis: mod_bandwidth breaks POSTs to Action/AddHandler cgis >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Thu May 31 09:40:03 PDT 2001 >Closed-Date: Thu May 31 10:17:56 PDT 2001 >Last-Modified: Wed Oct 31 03:10:01 PST 2001 >Originator: egrubbs@rackspace.com >Release: 1.3.19 >Organization: >Environment: The server is running apache-1.3.19 on RedHat 6.2 with glibc-2.1.3 uname: Linux www.test.com 2.2.14-12.10RSsmp #1 SMP Mon Oct 9 17:03:11 CDT 2000 i686 unknown >Description: 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-To-Repeat: 1. Make sure that mod_bandwidth is loaded: LoadModule bandwidth_module modules/mod_bandwidth.so AddModule mod_bandwidth.c 2. Set up a handler. Action test-script /cgi-bin/form.cgi AddHandler test-script .testcgi 3. Create a form.cgi script such as: ------------ #!/bin/bash echo "content-type: text/plain" echo env echo "---- STDIN ----" cat --------------- 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 ---------
-------------------------- 6. Now when you go to this form and submit it, it will not show any information below the "------STDIN-----" line in form.cgi. >Fix: >Release-Note: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: marc State-Changed-When: Thu May 31 10:17:54 PDT 2001 State-Changed-Why: I'm afraid we have nothing to do with mod_bandwidth, and therefore can do nothing about bugs in it. You should contact the authors of the module for assistance. From: Yann Stettler To: aegrubbs@rackspace.com Cc: apbugs@Apache.Org Subject: Re: mod_actions/7794 : mod_bandwidth breaks POSTs to Action/AddHandler cgis Date: Wed, 31 Oct 2001 11:57:42 +0100 > 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. Hello, mod_bandwidth must be given the lowest priority else it will transmit documents before others modules can do their job. If you compile mod_bandwidth into Apache, you can add it with the following : ./configure --add-module=mod_bandwidth.c --permute-module=BEGIN:bandwidth If you use the AddModule/LoadModule directive, mod_bandwidth should be placed at the begining of the list to give it the lowest priority. Cheers, Yann Stettler -- ------------------------------------------------------------------- Yann Stettler stettler@cohprog.com CohProg SaRL http://www.cohprog.com/ -=*=- Anime and Manga Services http://www.animanga.com/ Free Email & website http://www.cels.org >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]