Bug 58602 - Priority issue on DirectoryMatch directive
Summary: Priority issue on DirectoryMatch directive
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.4.17
Hardware: PC Windows NT
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-11 16:49 UTC by SSW
Modified: 2015-11-11 17:54 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SSW 2015-11-11 16:49:59 UTC
In Apache 2.4.17, the priorities of DirectoryMatch directives are determined by the number of slashes (/) in the argument (core.c: dirsection function), but in the case of arguments like ^/[^/]+/a, the number of slashes are over counted and the case have larger priority than the case of same directory depth like ^/b/a. 
I think it is not appropriate to determine the priorities of DirectoryMatch directives (or should be determined by simply its order).
Comment 1 Eric Covener 2015-11-11 17:54:13 UTC
analysis looks right to me, and impl on the surface seems to conflict with how sections.html describes the merge.