gunnar: server/pear/Horde_SyncML/patches/Horde_SyncML-0.7.0dev20091215 t_SyncML_HK_GW_NoDuplicationOnUidChange.diff, NONE, 1.1

cvs at kolab.org cvs at kolab.org
Sat Feb 27 23:59:56 CET 2010


Author: gunnar

Update of /kolabrepository/server/pear/Horde_SyncML/patches/Horde_SyncML-0.7.0dev20091215
In directory doto:/tmp/cvs-serv7153/pear/Horde_SyncML/patches/Horde_SyncML-0.7.0dev20091215

Added Files:
	t_SyncML_HK_GW_NoDuplicationOnUidChange.diff 
Log Message:
kolab/issue3238 (Double Entries with SyncML when the folder uid validity changes) 

--- NEW FILE: t_SyncML_HK_GW_NoDuplicationOnUidChange.diff ---
REF: https://issues.kolab.org/issue3238

---
Index: a/a/a/SyncML/Backend/Horde.php
===================================================================
--- a/a/a/SyncML/Backend/Horde.php	2008-10-20 16:28:27.000000000 +0200
+++ b/a/a/SyncML/Backend/Horde.php	2008-10-20 16:32:09.000000000 +0200
@@ -186,7 +186,12 @@
                 continue;
             }
 
-            if ($slowsync) {
+            // Add should only be done once on an existing entry -
+            // if it's performed a second time it's very likely that
+            // there is something wrong. Therefore all adds are
+            // filtered that already have a corresponding mapping in
+            // the database
+            //if ($slowsync) {
                 // SlowSync: Ignore all entries where there already in a
                 // map entry.
                 $cuid = $this->_getCuid($database, $suid);
@@ -196,7 +201,7 @@
                         __FILE__, __LINE__, PEAR_LOG_DEBUG);
                     continue;
                 }
-            }
+	    //}
             $add_ts[$suid] = $registry->call($database . '/getActionTimestamp',
                                              array($suid, 'add', SyncML_Backend::getParameter($databaseURI, 'source')));
             $sync_ts = $this->_getChangeTS($database, $suid);





More information about the commits mailing list