You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Don O'Neil <do...@cisco.com> on 2000/02/22 22:03:37 UTC

mod_include/5799: Server Side Includes of CGI with passed parameters fails with [an error occurred while processing this directive]

>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:
>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:

<html>
<!--#exec cgi="/cgi/env.cgi?name=Don"-->
</html>     

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:

<html>
<!--#exec cgi="/cgi/env.cgi"-->
</html>     

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 <Directory> tag for the html home dir:
Options Indexes FollowSymLinks ExecCGI Include


>Fix:
C
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <ap...@Apache.Org> 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!     ]