Received: (qmail 39901 invoked by uid 65534); 22 Feb 2000 21:03:37 -0000 Message-Id: <20000222210337.39900.qmail@locus.apache.org> Date: 22 Feb 2000 21:03:37 -0000 From: Don O'Neil Reply-To: doneil@cisco.com To: submit@bugz.apache.org Subject: Server Side Includes of CGI with passed parameters fails with [an error occurred while processing this directive] X-Send-Pr-Version: 3.110 >Number: 5799 >Category: mod_include >Synopsis: Server Side Includes of CGI with passed parameters fails with [an error occurred while processing this directive] >Confidential: no >Severity: critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Tue Feb 22 13:10:01 PST 2000 >Closed-Date: >Last-Modified: Tue Feb 22 13:20:00 PST 2000 >Originator: doneil@cisco.com >Release: 1.3.9 >Organization: apache >Environment: Solaris 2.5.1, 2.6, Free BSD 3.2, 3.3. GNU 2.8 or greater compiler. >Description: When using mod_include to execute a cgi in a .shtml page with the following content: The following error is generated at the browser: [an error occurred while processing this directive] The follwing entry is generated in the log file: invalid CGI ref "/cgi/env.cgi?name=Don" in /www/amplespace/public_html/test/index.shtml When you execute the same shtml without the passed parameter everything works fine.. ie: Using #include virtual is a work around, but is not really appropriate. >How-To-Repeat: Configure a standard 1.3.9 apache w/ MOD_INCLUDE and put in the following into the config file to activate cgi & ssi: AddHandler cgi-script .cgi AddType text/html .shtml AddHandler server-parsed .shtml Also include in the tag for the html home dir: Options Indexes FollowSymLinks ExecCGI Include >Fix: C >Release-Note: >Audit-Trail: From: Marc Slemko To: doneil@cisco.com Cc: submit@bugz.apache.org Subject: Re: mod_include/5799: Server Side Includes of CGI with passed parameters fails with [an error occurred while processing this directive] Date: Tue, 22 Feb 2000 14:19:32 -0700 (MST) On 22 Feb 2000, Don O'Neil wrote: > >Description: > When using mod_include to execute a cgi in a .shtml page with the following content: > > > > > > The following error is generated at the browser: > [an error occurred while processing this directive] > > The follwing entry is generated in the log file: > invalid CGI ref "/cgi/env.cgi?name=Don" in /www/amplespace/public_html/test/index.shtml > > When you execute the same shtml without the passed parameter everything works fine.. ie: > > > > > > Using #include virtual is a work around, but is not really appropriate. This isn't a bug. That is the way things work. "exec cgi" takes the file named and executes it as a CGI. It passes any query string from the original page. That is the way SSIs were originally created, and Apache follows that. Since it makes little sense, however, to have special cases for CGIs, Apache offers "include virtual" which takes any URI on the server (could be a CGI, a file, a module, etc.) and handles it without the odd semantics that exec cgi has. >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! ]