You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@subversion.apache.org by "Branko Čibej (JIRA)" <ji...@apache.org> on 2018/11/18 15:57:00 UTC

[jira] [Commented] (SVN-4790) Make mod_dav_svn and mod_authz_svn work with expressions and regex

    [ https://issues.apache.org/jira/browse/SVN-4790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16690945#comment-16690945 ] 

Branko Čibej commented on SVN-4790:
-----------------------------------

Both {{mod_dav_svn}} and {{mod_authz_svn}} assume that the location parameter is a normal urlpath. So in two cases — the location parameter is a regular expression or when it contains an HTTPd expression — neither module will calculate the matched location correctly.

> Make mod_dav_svn and mod_authz_svn work with expressions and regex
> ------------------------------------------------------------------
>
>                 Key: SVN-4790
>                 URL: https://issues.apache.org/jira/browse/SVN-4790
>             Project: Subversion
>          Issue Type: New Feature
>          Components: mod_dav_svn
>    Affects Versions: all
>            Reporter: Branko Čibej
>            Assignee: Branko Čibej
>            Priority: Major
>
> Currently {{mod_dav_svn}} takes its the {{root_dir}} parameter from the argument of the {{<Location>}} block where it's configured. This does not work if the argument is a regular expression, as in:
> {noformat}
> <Location ~ REGEX>
>   DAV svn
>   ...
> </Location>
> {noformat}
> or
> {noformat}
> <LocationMatch REGEX>
>   DAV svn
>   ...
> </LocationMatch>
> {noformat}
> In these cases, the {{root_dir}} parameter will be set to the actual regular expression, not the path matched in the request URL. Fixing this is rather essential for supporting [expressions in {{mod_dav_svn}}|https://svn.apache.org/repos/asf/subversion/branches/mod-dav-svn-expressions/BRANCH-README].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)