httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54307] New: Alias/AliasMatch does'n/does fold/match multiple slashes
Date Sat, 15 Dec 2012 17:33:51 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54307

            Bug ID: 54307
           Summary: Alias/AliasMatch does'n/does fold/match multiple
                    slashes
           Product: Apache httpd-2
           Version: 2.4-HEAD
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Documentation
          Assignee: docs@httpd.apache.org
          Reporter: calestyo@scientia.net
    Classification: Unclassified

Hi.

Marking this as major, as it quite changes the behaviour of Alias/AliasMatch.

This is similar to what's already correctly documented at the <Location>
directive in the “Note about / (slash)” box there
(https://httpd.apache.org/docs/trunk/mod/core.html#location).


The Alias directive apparently implicitly folds/matches any number of
_consecutive_ slashes (/).
Thus:
Alias /foo/bar /some/file
will apply to e.g. URIs:
/foo/bar
/foo///bar
////foo////bar
etc.


As with Location vs. LocationMatch, this seems to be _NOT_ the case for
AliasMatch, thus e.g.:
AliasMatch "^/foo/bar$" /some/file
will apply to  URIs:
/foo/bar
but _not_ to:
/foo///bar
////foo////bar
(*)


I think this needs to be documented in both directives, Alias and AliasMatch,
similar as it is done as with Location/LocationMatch.


Cheers,
Chris.

(*) Interestingly it _DOES_ fold/match such URIs where there are only multiple
leading slashes, so.e.g.:
AliasMatch "^/foo/bar$" /some/file
will apply to  URIs:
/////foo/bar

I consider this rather a functioal bug and will report it as a separate bug. If
that is not accepted a functional bug, that strange special behaviour should be
documented, too.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Mime
View raw message