You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2009/10/26 05:11:17 UTC
DO NOT REPLY [Bug 48054] New: FilterProvider matches always if the
"dispatch" string does not exist (except for match=*)
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
DO NOT REPLY [Bug 48054] FilterProvider matches always if the
"dispatch" string does not exist (except for match=*)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48054
--- Comment #1 from Nick Kew <ni...@webthing.com> 2009-10-25 23:56:50 UTC ---
Created an attachment (id=24418)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=24418)
patch
You're probably right. I'm struggling to figure out the original logic: it may
have pre-dated the introduction of NOT.
Just attaching a patch of it, that can feature in a proposal in STATUS. We
can't apply this to trunk, because all that condition logic is replaced by the
general-purpose expression parser.
--
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
DO NOT REPLY [Bug 48054] FilterProvider matches always if the
"dispatch" string does not exist (except for match=*)
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48054
Nick Kew <ni...@webthing.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Nick Kew <ni...@webthing.com> 2009-12-26 17:12:11 UTC ---
Fixed in r892261
--
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