www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vijay Bhovan <V.Bho...@sql.com>
Subject mod_include/1721: Server Side Includes - .shtml are not parsed correctly
Date Fri, 23 Jan 1998 12:02:14 GMT

>Number:         1721
>Category:       mod_include
>Synopsis:       Server Side Includes - .shtml are not parsed correctly
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Fri Jan 23 04:10:01 PST 1998
>Last-Modified:
>Originator:     V.Bhovan@sql.com
>Organization:
apache
>Release:        1.3b3
>Environment:
Windows NT
Latest Service Patches
>Description:
---------------------------
This is the error message:

[an error occurred while processing this directive]

-----------------------------------
This is the cgi-stuff in access.conf:

</Directory>

# /apache/cgi-bin should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.

<Directory g:/Pcms44/Build/cgi_bin/intelnt_debug>
AllowOverride None
Options All
</Directory>

----------------------------------------
This is the cgi/shtml-stuff in srm.conf:

# ScriptAlias: This controls which directories contain server scripts.
# Format: ScriptAlias fakename realname

ScriptAlias /cgi-bin/ G:/Pcms44/Build/cgi_src/intelnt_debug/
....

# To use CGI scripts:
AddHandler cgi-script .exe

# To use server-parsed HTML files
AddType text/html .shtml
AddHandler server-parsed .shtml

----------------------------------------
This the the shtml with the problem:

<!--#exec cmd="/cgi-bin/get_filter_cgi.exe CHDOC" -->

------------------------------------
This is the contents of error.log:

[Fri Jan 23 11:41:55 1998] [error] invalid CGI ref
"/cgi-bin/get_filter_cgi.exe CHDOC" in
c:/apache/webroot/pcms/chdoc_filter.shtml
[Fri Jan 23 11:51:49 1998] [error] execution failure for parameter "cmd"
to tag exec in file c:/apache/webroot/pcms/chdoc_filter.shtml


>How-To-Repeat:
Try an example such as:
(Where hello.exe prints "hello world" to standard out

<html><body>

<!--#exec cmd="hello.exe"-->

</body></html>
>Fix:
There is some logic in mod_include that does not execute the CMD but executes the
.shtml file it came from.

If I get further I will send the code to you.

THANK YOU VERY MUC
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]




Mime
View raw message