<?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>Keep parameter variable from being overwritten</title> 
  <pubDate>Fri, 10 Apr 2026 09:35:41 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/5840</link> 
  <atom:link rel="self" type="application/rss+xml" title="Keep parameter variable from being overwritten" href="https://bugs.horde.org/ticket/5840/rss" /> 
  <description>Keep parameter variable from being overwritten</description> 
 
   
   
  <item> 
   <title>Hi,



After replacing my dear old phone with a Motorola RAZ</title> 
   <description>Hi,



After replacing my dear old phone with a Motorola RAZR2 V8. i was able

to do a pretty good synchronization of contacts.



My source(backend) is a LDAP, where the entries was not added with turba.

Now i understand that they have to, just to get the _uid ( suid ).

I added some contacts in Turba and they where the only contacts showing

up on the phone after a sync.

I always thought that _uid would be added on the first sync.



Now i have _uid on all objects and almost all of them are being

synchronized.



The pattern i can see for those not being synchronized in

/tmp/sync/syncml_log.txt are contacts where the_uid are like this lines

DEBUG:  add: 20071021203756.95531gu3j57vxw9w@localhost

DEBUG:  check: contacts 20071021203756.95531gu3j57vxw9w@localhost

text/x-vcard::

ERR:    api export call for 20071021203756.95531gu3j57vxw9w@localhost

failed:  Object not found





The object is there, if i delete this contact and add it again,

then an other contact will be effected and not synced and the re-added is.



Well 41 of 45 is a good start so where can this bug be hidden?



many thanks,

::Beppe







down the trace i found out it&#039;s a variable conflict,

In turba lib/api.php in the function _turba_export, here the $uid was

change to my login uid(?). After this line

require_once dirname(__FILE__) . &#039;/base.php&#039;;





I think its a good idea to change the source.php.dist

Where the example for a personal_ldap (&quot;My Address Book&quot;) is the one i

based mine.

Here you can see that $uid is used like this &quot;$uid =

Auth::getBareAuth();&quot; and change the ldap search criteria.</description> 
   <pubDate>Mon, 29 Oct 2007 16:00:47 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5840#t38237</link> 
  </item> 
   
  <item> 
   <title>Done.</title> 
   <description>Done.</description> 
   <pubDate>Tue, 30 Oct 2007 05:22:56 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/5840#t38246</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
