<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Contact deleted from mobile after sync because of a move into a new addressbook</title> 
  <pubDate>Fri, 10 Apr 2026 09:20:53 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8483</link> 
  <atom:link rel="self" type="application/rss+xml" title="Contact deleted from mobile after sync because of a move into a new addressbook" href="https://bugs.horde.org/ticket/8483/rss" /> 
  <description>Contact deleted from mobile after sync because of a move into a new addressbook</description> 
 
   
   
  <item> 
   <title>How to reproduce :



- Create a contact into a synced addre</title> 
   <description>How to reproduce :



- Create a contact into a synced addressbook

- Sync it with a mobile

- Move this contact into another addressbook which is synced too



Result :

- Contact deleted in mobile



Expected result :

- Contact in mobile and always synced



Work around:

- Delete contact from addressbook 1 and re create it into addressbook 2 to sync it again</description> 
   <pubDate>Thu, 06 Aug 2009 12:59:47 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8483#t55241</link> 
  </item> 
   
  <item> 
   <title>Ok,



I found the problem !



Real how to reproduce bug :
</title> 
   <description>Ok,



I found the problem !



Real how to reproduce bug :



1. Create a new contact with mobile



2. Sync this contact in Horde (default addressbook A)

sync line created in horde_syncml_map, timestamp = 1249678393

an add line is created in history table for the addressbook A =&gt; turba:1b6e0d16bbb5eb2216da5d2265e95d0b:20090807225313.19014a63moznjl15@mail-test.exemple.fr, timestamp = 1249678393



3. Move this contact from the addressbook A to addressbook B (the both are marked as synced in turba options)

add line created in history table for addressbook B =&gt; turba:localldap:20090807225313.19014a63moznjl15@mail-test.exemple.fr, timestamp = 1249678421

delete line created in history table for addressbook A =&gt; turba:1b6e0d16bbb5eb2216da5d2265e95d0b:20090807225313.19014a63moznjl15@mail-test.exemple.fr, timestamp = 1249678421



4. Sync again mobile with horde

the contact is deleted from mobile !!! Expected result =&gt; nothing !



It&#039;s in indirectly bind to the file :



lib/SyncML/Backend/Horde.php, line 199.

It call the turba method &quot;getActionTimestamp&quot; to get the TimeStamp for add action.

But if we examine the function Turba api.php _turba_getActionTimestamp($uid, $action, $sources = null), we see that as the source parameter is null, it loop on sync books and as soon as it find an entry in history for this contact, it return it ! But there is 2 entries for this contact in 2 differents addressbook. And it return the result for the bad addressbook... So the timestamp is equals to sync timestamp and it finish by &quot;Added to server from client: 20090807225313.19014a63moznjl15@mail-test.exemple.fr ignored&quot;



Well, you have surely a best knowledge of Horde / Turba / SyncML so maybe you can submit a patch for this bug. In all cases, I will try to resolve it in theses days !



Thanks

</description> 
   <pubDate>Fri, 07 Aug 2009 21:22:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8483#t55244</link> 
  </item> 
   
  <item> 
   <title>A fix is available on #8487



Thanks for comments...</title> 
   <description>A fix is available on #8487



Thanks for comments...</description> 
   <pubDate>Tue, 11 Aug 2009 07:03:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8483#t55255</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
