[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:07:11 +0100

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.

[[[
Follow-up to r1203546:

* subversion/mod_dav_svn/mod_dav_svn.c
  (merge_dir_config): Only log a warning about nested SVNPath locations,
   but still allow access. Also improve the message being logged.
]]]

Index: subversion/mod_dav_svn/mod_dav_svn.c
===================================================================
--- subversion/mod_dav_svn/mod_dav_svn.c (revision 1203650)
+++ subversion/mod_dav_svn/mod_dav_svn.c (working copy)
@@ -218,16 +218,14 @@ merge_dir_config(apr_pool_t *p, void *base, void *
   newconf->root_dir = INHERIT_VALUE(parent, child, root_dir);
 
   if (parent->fs_path)
- {
- /* Nesting inside SVNPath is ambiguous so prevent access. */
- newconf->fs_path = newconf->fs_parent_path = NULL;
+ 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 of repository '%s'",
+ child->root_dir, parent->root_dir,
+ svn_fspath__skip_ancestor(parent->root_dir, child->root_dir),
+ parent->fs_path);
 
- ap_log_error(APLOG_MARK, APLOG_ERR, 0, NULL,
- "mod_dav_svn: invalid nested Location '%s' inside "
- "SVNPath Location '%s'",
- child->root_dir, parent->root_dir);
- }
-
   return newconf;
 }
 
Received on 2011-11-18 15:07:47 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.