[sync] SUID conflict

Faure, Paul paul.faure at agr.gc.ca
Wed Jan 7 19:56:15 UTC 2009


Hi Alex,
 
I had that exact problem with my iPhone. The issue on my end was a permissions issue in Horde. My default address book was set to one that I didnt have write permissions on. So the sync was getting an error.
The error message "already exists" on my end was lacking so I submitted a patch a few weeks back with a more verbose output.
 
--- ./lib/SyncML/Backend/Horde.php.orig 2008-11-12 13:24:29.000000000 -0500
+++ ./lib/SyncML/Backend/Horde.php      2008-11-12 13:24:20.000000000 -0500
@@ -395,12 +395,13 @@
                 $this->createUidMap($database, $cuid, $suid, $ts);
             }
         } else {
+            $errstr=$suid->toString();
             // Failed import. Maybe the entry is already there. Check if a
             // guid is returned:
             if ($suid->getDebugInfo()) {
                 $suid = $suid->getDebugInfo();
                 $this->logMessage(
-                    'Adding client entry to server: already exists with server id ' . $suid,
+                    'Adding client entry to server: already exists with server id ' . $suid . ': ' . $errStr,
                     __FILE__, __LINE__, PEAR_LOG_NOTICE);
                 if ($this->_backendMode == SYNCML_BACKENDMODE_SERVER) {
                     $this->createUidMap($database, $cuid, $suid, 0);

 

________________________________

From: sync-bounces at lists.horde.org on behalf of Alex .
Sent: Wed 07-Jan-09 2:06 PM
To: sync at lists.horde.org
Subject: [sync] SUID conflict





Hi,

I am having suid conflicts when syncing from my BlackBerry. Here's the story:
Basically, I did an initial sync from Thunderbird -> Horde (with Funambol plugin). This works fine.
Then, I installed the Funambol plugin on my BlackBerry and got my Thunderbird contacts on my BB.
The problem is when I create a contact on my BB and want to sync it, it doesn't get stored in Horde because the server always sees the same syncml_suid coming from the BB for any new contact I create:

NOTICE: Adding client entry to server: already exists with server id 20081209145329.1732241njbnqu8kk@[horde url]DEBUG:  SQL Query by SyncML_Backend_Horde::_getSuid(): SELECT syncml_suid FROM horde_syncml_map WHERE syncml_syncpartner = ? AND syncml_db = ? AND syncml_uid = ? AND syncml_cuid = ?, values: fbb-[numbers], contacts, [my e-mail], 260599583DEBUG:  SQL Query by SyncML_Backend_Horde::createUidMap(): INSERT INTO horde_syncml_map (syncml_suid, syncml_timestamp, syncml_syncpartner, syncml_db, syncml_uid, syncml_cuid) VALUES (?, ?, ?, ?, ?, ?), values: 20081209145329.1732241njbnqu8kk@[horde url], 0, fbb-[numbers], contacts, [my e-mail], 260599583DEBUG:  Added client entry as 20081209145329.1732241njbnqu8kk@[horde url]

Even if I delete the entry on my BB, sync (with no conflicts as there is no add), create a new address book entry and resync, the server tells me there's a conflict with that same suid again (which actually exists in the DB for another contact).
Note that I also did syncs before and after creating the contact (to make sure the server gave me 0 changes/adds/deletes etc) so the suid in question really seems to be the one used for every new contact I create on my BB. As I was writing this e-mail, I even noticed in my logs that I once had over 10 new contacts to add from BB to Horde and I got the same number of "already exists" messages, all with the same suid as above.
Which brings me to my next question: is the suid provided by Horde or by the funambol BB client?

Another strange thing that I noticed is that the timestamp is 0. Is this normal?

I am using Horde 3.2.1 on CentOS 5.2 and Funambol blackberry client v7.0.7.
Thanks!

-Alex
_________________________________________________________________
Keep in touch and up to date with friends and family. Make the connection now.
http://www.microsoft.com/windows/windowslive/
--
sync mailing list - Join the hunt: http://horde.org/bounties/#sync
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: sync-unsubscribe at lists.horde.org




More information about the sync mailing list