You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by gs...@apache.org on 2012/05/15 08:41:43 UTC

svn commit: r1338556 - /subversion/trunk/subversion/libsvn_ra_serf/log.c

Author: gstein
Date: Tue May 15 06:41:42 2012
New Revision: 1338556

URL: http://svn.apache.org/viewvc?rev=1338556&view=rev
Log:
Only provide changed paths in a log reply when they actually exist.
Prior to this fix, authz 7 failed.

* subversion/libsvn_ra_serf/log.c:
  (log_closed): initialize the log entry's paths members when paths
    have been collected into COLLECT_PATHS.

Modified:
    subversion/trunk/subversion/libsvn_ra_serf/log.c

Modified: subversion/trunk/subversion/libsvn_ra_serf/log.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/log.c?rev=1338556&r1=1338555&r2=1338556&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/log.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/log.c Tue May 15 06:41:42 2012
@@ -278,8 +278,11 @@ log_closed(svn_ra_serf__xml_estate_t *xe
       /* Pick up the paths from the context. These have the same lifetime
          as this state. That is long enough for us to pass the paths to
          the receiver callback.  */
-      log_entry->changed_paths = log_ctx->collect_paths;
-      log_entry->changed_paths2 = log_ctx->collect_paths;
+      if (apr_hash_count(log_ctx->collect_paths) > 0)
+        {
+          log_entry->changed_paths = log_ctx->collect_paths;
+          log_entry->changed_paths2 = log_ctx->collect_paths;
+        }
 
       /* ... and same story for the collected revprops.  */
       log_entry->revprops = log_ctx->collect_revprops;