logo       

Re: make test fails in modules/include.t: msg#00108

Subject: Re: make test fails in modules/include.t
[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:stas@xxxxxxxxxx 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




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    politics.lenini...    audio.emagic.ex...    tex.texinfo.gen...    handhelds.linux...    ietf.sipping/20...    lang.erlang.gen...    cygwin.talk/200...    yellowdog.gener...    mozilla.devel.l...    xfree86.newbie/...    openbsd.ports/2...    db.oracle.devel...    kde.kalyxo.deve...    user-groups.lin...    bbc.cvs/2003-04...    gnu.libtool.bug...    redhat.k12osn/2...    emulators.wine....    freebsd.devel.d...    search.xapian.g...    java.izpack.use...    network.mrtg.us...    windows.total-c...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe