Received: (qmail 62051 invoked by uid 501); 27 Nov 2000 17:22:18 -0000 Message-Id: <20001127172217.62047.qmail@locus.apache.org> Date: 27 Nov 2000 17:22:17 -0000 From: jake buchholz Reply-To: jake@execpc.com To: submit@bugz.apache.org Subject: POST data can no longer be sent to a .shtml X-Send-Pr-Version: 3.110 >Number: 6896 >Category: mod_include >Synopsis: POST data can no longer be sent to a .shtml >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon Nov 27 09:30:01 PST 2000 >Closed-Date: >Last-Modified: Fri Dec 1 01:50:03 PST 2000 >Originator: jake@execpc.com >Release: 1.3.14 >Organization: apache >Environment: Linux xxx.xxx.xxx 2.2.16-RAID #16 SMP Wed Aug 30 14:35:57 EDT 2000 i686 unknown egcs-2.91.66 Server Version: Apache/1.3.14 (Unix) mod_perl/1.24_01 PHP/4.0.3pl1 FrontPage/4.0.4.3 >Description: A customer's web site contained a one-liner in their index.shtml: the CGI program is a self-contained perl CGI script that takes POST data (if present) and acts on it. If there isn't any POST data, it generates a form that when submitted POSTs data back to itself (at the non-/cgi-bin URL). This was working until the server was upgraded from 1.3.12 to 1.3.14, and it now results in: Method Not Allowed The requested method POST is not allowed for the URL /index.shtml Specifically allowing POST in the via didn't seem to do the trick. A partial workaround was to write a PHP script to take the place of the .shtml: ...however, all POST variables need to be takent into account in the PHP, and any cookies aren't passed along either (because it's PHP that's really making the request, not the viewer's browser...) >How-To-Repeat: http://www.evcal.com/jrw is a .shtml that includes /cgi-bin/jrw http://www.evcal.com/cgi-bin/jrw will work, but the customer doesn't want the cgi-bin portion of the URL to show. >Fix: >Release-Note: >Audit-Trail: From: Tony Finch To: apbugs@apache.org, jake@execpc.com Cc: Subject: Re: mod_include/6896: POST data can no longer be sent to a .shtml Date: Fri, 1 Dec 2000 00:29:46 +0000 jake buchholz wrote: > >Server Version: Apache/1.3.14 (Unix) mod_perl/1.24_01 PHP/4.0.3pl1 FrontPage/4.0.4.3 What modules did you add to your 1.3.12 installation? >A customer's web site contained a one-liner in their index.shtml: > > > >the CGI program is a self-contained perl CGI script that takes POST data (if >present) and acts on it. If there isn't any POST data, it generates a form >that when submitted POSTs data back to itself (at the non-/cgi-bin URL). > >This was working until the server was upgraded from 1.3.12 to 1.3.14, and it >now results in: > > Method Not Allowed > The requested method POST is not allowed for the URL /index.shtml I haven't tried to reproduce this problem, but from looking at the changelog and the differences between some of the relevant code I can't see how this can have happened. Can you reproduce the problem with a vanilla Apache installation -- no additional modules beyond the base distribution? (I hope I can get this email out before we go for releasing 1.3.15 on Monday -- I'm on a plane at the moment and I'll be on vacation this weekend with strictly limited connectivity.) Tony. -- f.a.n.finch dot@dotat.at fanf@covalent.net Chad for President! >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! ]