[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1203546 - /subversion/trunk/subversion/mod_dav_svn/mod_dav_svn.c

From: Stefan Sperling <stsp_at_elego.de>
Date: Fri, 18 Nov 2011 15:11:18 +0100

On Fri, Nov 18, 2011 at 03:07:11PM +0100, Stefan Sperling wrote:
> On Fri, Nov 18, 2011 at 02:52:44PM +0100, Stefan Sperling wrote:
> > Suggestion (not tested);
> >
> > ap_log_error(APLOG_MARK, APLOG_WARNING, 0, NULL,
> > "mod_dav_svn: nested Location '%s' inside "
> > "SVNPath Location '%s'; this hinders access to a file "
> > "or directory '%s' inside the repository '%s'",
> > child->root_dir, parent->root_dir,
> > svn_dirent_basename(child->root_dir, scratch_pool),
> > parent->fs_path);
>
> Better suggestion.

And a new patch, based on your r1203651 commit:

[[[
Follow-up to r1203651:

* subversion/mod_dav_svn/mod_dav_svn.c
  (merge_dir_config): Use svn__fspath instead of svn_dirent for URL-paths.
    Correctly print Locations nested more than 1 level deep.
]]]

Index: subversion/mod_dav_svn/mod_dav_svn.c
===================================================================
--- subversion/mod_dav_svn/mod_dav_svn.c (revision 1203651)
+++ subversion/mod_dav_svn/mod_dav_svn.c (working copy)
@@ -221,7 +221,8 @@ merge_dir_config(apr_pool_t *p, void *base, void *
     ap_log_error(APLOG_MARK, APLOG_WARNING, 0, NULL,
                  "mod_dav_svn: nested Location '%s' hinders access to '%s' "
                  "in SVNPath Location '%s'",
- child->root_dir, svn_dirent_basename(child->root_dir, p),
+ child->root_dir,
+ svn_fspath__skip_ancestor(parent->root_dir, child->root_dir),
                  parent->root_dir);
 
   return newconf;
Received on 2011-11-18 15:11:55 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.