[Apache docs folks, please notice that it looks like the Options and mod_include pages need to have some fixes. See the rest of this email for details. Thank you]

Thomas Berger wrote:
Hello,

I encountered this with apache 2.49, perl 5.8.4 and mod_perl 1.99_14
and now with apache 2.50, perl 5.8.5 and mod_perl 1.99_15. It must
be something stupid but I cannot figure out what is going on:

[...]

# [an error occurred while processing this directive]
#
# [an error occurred while processing this directive]

[...]

[Sat Aug 21 17:28:46 2004] [error] [client 127.0.0.1] unable to include potential exec "/includes-registry/test.pl" in parsed file /home/thomas/builds/mod_perl-1.99_15/t/htdocs/includes/test.shtml
[Sat Aug 21 17:28:46 2004] [error] [client 127.0.0.1] unable to include potential exec "/includes-registry/cgipm.pl" in parsed file /home/thomas/builds/mod_perl-1.99_15/t/htdocs/includes/test.shtml

[...]

All tests succeed when I change in extra.conf for
<Directory /home/thomas/builds/mod_perl-1.99_15/t/htdocs/includes>
the line
    Options Indexes FollowSymLinks IncludesNoExec
into
    Options Indexes FollowSymLinks Includes

The include file in question t/htdocs/includes/test.shtml includes:

<!--#include virtual="/includes-registry/test.pl" -->

according to the Apache docs:
http://httpd.apache.org/docs-2.0/en/mod/core.html#options
IncludesNoExec disables #cmd and #exec, but no #include virtual

I suppose mod_include has introduced this feature w/o documenting it?

modules/filters/mod_include.c:
                if (!error_fmt && (ctx->flags & FLAG_NO_EXEC) &&
                    rr->content_type &&
                    (strncmp(rr->content_type, "text/", 5))) {
                    error_fmt = "unable to include potential exec \"%s\" "
                        "in parsed file %s";
                }

So Thomas, thanks for the fix (I don't know why I can't reproduce the problem here). I have committed it.

And Apache docs folks, please add to that section:
http://httpd.apache.org/docs-2.0/en/mod/core.html#options that #include virtual may require Includes (instead of IncludesNoExec), if the included file sets a content type matching "^text/" regex.


--
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to