Return-Path: Delivered-To: apmail-httpd-bugs-archive@www.apache.org Received: (qmail 93233 invoked from network); 26 Oct 2009 04:11:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Oct 2009 04:11:40 -0000 Received: (qmail 59407 invoked by uid 500); 26 Oct 2009 04:11:40 -0000 Delivered-To: apmail-httpd-bugs-archive@httpd.apache.org Received: (qmail 59305 invoked by uid 500); 26 Oct 2009 04:11:40 -0000 Mailing-List: contact bugs-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: "Apache HTTPD Bugs Notification List" List-Id: Delivered-To: mailing list bugs@httpd.apache.org Received: (qmail 59293 invoked by uid 99); 26 Oct 2009 04:11:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Oct 2009 04:11:40 +0000 X-ASF-Spam-Status: No, hits=-10.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Oct 2009 04:11:37 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id 3A509234C046; Sun, 25 Oct 2009 21:11:17 -0700 (PDT) From: bugzilla@apache.org To: bugs@httpd.apache.org Subject: DO NOT REPLY [Bug 48054] New: FilterProvider matches always if the "dispatch" string does not exist (except for match=*) X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Apache httpd-2 X-Bugzilla-Component: mod_filter X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tietew@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: bugs@httpd.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sun, 25 Oct 2009 21:11:17 -0700 (PDT) https://issues.apache.org/bugzilla/show_bug.cgi?id=48054 Summary: FilterProvider matches always if the "dispatch" string does not exist (except for match=*) Product: Apache httpd-2 Version: 2.2.14 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: mod_filter AssignedTo: bugs@httpd.apache.org ReportedBy: tietew@gmail.com I tried following configurations: FilterProvider SSI INCLUDES env=PATH_INFO $index.html FilterChain SSI EXPECT results are: Applied SSI for URL: /some.cgi/index.html Not applied SSI for URL: /some.cgi/another.html Not applied SSI for URL: /some.cgi ACTUAL results are: Applied SSI for URL: /some.cgi/index.html Not applied SSI for URL: /some.cgi/another.html Applied SSI for URL: /some.cgi In filter_lookup() at mod_filter.c, when the "dispatch" string does not exist, "matched" status will be changed to "not matched" only if match_type == DEFINED (means FilterProvider's match argument is "*"). But above configurations expects to apply filters only if environment PATH_INFO contains "index.html", and not to apply if PATH_INFO is empty or is not defined. The proposed change is simply if (!str) { if (provider->match_type == DEFINED && provider->match.string) { match = 0; } } change to if (!str) { match = 0; } -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org For additional commands, e-mail: bugs-help@httpd.apache.org