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 2005/05/26 06:56:41 UTC

DO NOT REPLY [Bug 35077] New: - mod_dav passes incorrect paths with LocationMatch

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35077>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35077

           Summary: mod_dav passes incorrect paths with LocationMatch
           Product: Apache httpd-2.0
           Version: 2.0.54
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_dav
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: david.anderson@calixo.net


when used with a <Location> block, mod_dav extracts the argument to Location and
passes it to inside handlers (namely, mod_dav_svn). This works well for Location
blocks.

However, if a LocationMatch is given with a complex regular expression, the
passed path (the raw regexp) is not practically usable, and causes failures when
handlers expect this path to be valid.

For example, the following configuration causes Subversion to fail in
mod_dav_svn because it doesn't strip the root_path handed down by mod_dav, due
to it being a regular expression instead of the real matched path:

<LocationMatch /svn(?=/[a-z]+)>
  DAV svn
  SvnParentPath /var/lib/svn
</LocationMatch>

mod_dav should do one of two things:
 - retrieve correct path information at runtime, if this is possible (ie.
getting the actual match LocationMatch found, instead of the expression)
 - offer a configuration directive to override this path with a static value.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org