<?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>adding contact to chained ldap slave server causes error message</title> 
  <pubDate>Fri, 10 Apr 2026 09:50:15 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/7478</link> 
  <atom:link rel="self" type="application/rss+xml" title="adding contact to chained ldap slave server causes error message" href="https://bugs.horde.org/ticket/7478/rss" /> 
  <description>adding contact to chained ldap slave server causes error message</description> 
 
   
   
  <item> 
   <title>when a contact is added to turba, it would appear a search i</title> 
   <description>when a contact is added to turba, it would appear a search is made to confirm the record has been added



however if the server that receives the update uses chaining and syncrepl the update may not have made it back to the slave slave in time for the search to find it, this causes an error message &quot;There was an error adding the new contact. Contact your system administrator for further help.&quot;</description> 
   <pubDate>Sat, 11 Oct 2008 14:48:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7478#t49612</link> 
  </item> 
   
  <item> 
   <title>Any suggestions how to work around this?</title> 
   <description>Any suggestions how to work around this?</description> 
   <pubDate>Sat, 11 Oct 2008 16:40:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7478#t49617</link> 
  </item> 
   
  <item> 
   <title>&gt; Any suggestions how to work around this?



I&#039;d guess the </title> 
   <description>&gt; Any suggestions how to work around this?



I&#039;d guess the ldap driver provides a success/failure code at the point the write request is made, I&#039;d take this as success.</description> 
   <pubDate>Mon, 13 Oct 2008 08:59:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7478#t49660</link> 
  </item> 
   
  <item> 
   <title>But the problem happens when displaying the contact, not add</title> 
   <description>But the problem happens when displaying the contact, not adding it, right?</description> 
   <pubDate>Mon, 13 Oct 2008 14:21:25 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7478#t49667</link> 
  </item> 
   
  <item> 
   <title>&gt; But the problem happens when displaying the contact, not a</title> 
   <description>&gt; But the problem happens when displaying the contact, not adding it, right?



nope, problem comes during adding the contact, it will be displayed because syncrepl delay is very small



from my reading of the code (./turba/lib/Forms/AddContact.php)



the record is added (line 82)



        $key = $driver-&gt;add($contact);



then the same record is searched for (line 86)



            $ob = $driver-&gt;getObject($key);





this is what is causing the error</description> 
   <pubDate>Mon, 13 Oct 2008 14:33:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7478#t49668</link> 
  </item> 
   
  <item> 
   <title>Mmm, true; but, if we remove that, then you still might hit </title> 
   <description>Mmm, true; but, if we remove that, then you still might hit an error on the display page after the redirect. So just removing that check doesn&#039;t seem like it&#039;ll really solve the problem.</description> 
   <pubDate>Wed, 15 Oct 2008 03:01:25 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7478#t49703</link> 
  </item> 
   
  <item> 
   <title>&gt; Mmm, true; but, if we remove that, then you still might hi</title> 
   <description>&gt; Mmm, true; but, if we remove that, then you still might hit an error 

&gt; on the display page after the redirect. So just removing that check 

&gt; doesn&#039;t seem like it&#039;ll really solve the problem.



I&#039;d suggest that the add function isn&#039;t the right place to make the check though. If ldap confirms it was added successfully then the add function should be happy. 



Perhaps the code that displays an entry could retry a few times with a short sleep in-between if it fails to find an object? For example four, quarter second, sleeps would minimise wait time, and still give up to a second for replication. Obviously those particular values might not be appropriate, I don&#039;t know how long the sync might take, but something along those lines?</description> 
   <pubDate>Wed, 15 Oct 2008 13:42:46 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7478#t49713</link> 
  </item> 
   
  <item> 
   <title>I&#039;m seeing a replication delay of around 1 sec.</title> 
   <description>I&#039;m seeing a replication delay of around 1 sec.</description> 
   <pubDate>Thu, 16 Oct 2008 08:54:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7478#t49743</link> 
  </item> 
   
  <item> 
   <title>The IMAP ACL code has a sleep() between setting and getting </title> 
   <description>The IMAP ACL code has a sleep() between setting and getting to get around a similar propagation delay in older versions of Cyrus IMAP when using a Murder environment.



http://cvs.horde.org/annotate.php/framework/IMAP/IMAP/ACL/rfc2086.php?rev=1.32#l175</description> 
   <pubDate>Thu, 16 Oct 2008 09:36:26 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7478#t49749</link> 
  </item> 
   
  <item> 
   <title>I&#039;m not happy about adding a delay for all backends that in </title> 
   <description>I&#039;m not happy about adding a delay for all backends that in most cases will just slow users down pointlessly. I could see getting rid of the read, I guess, but then you&#039;re likely to get this error when redirecting to the new contact.



I don&#039;t know enough about LDAP to know how common this is and how much it&#039;s worth compromising everyone else&#039;s experience because of it.</description> 
   <pubDate>Fri, 24 Oct 2008 01:09:56 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7478#t49933</link> 
  </item> 
   
  <item> 
   <title>&gt; I&#039;m not happy about adding a delay for all backends that i</title> 
   <description>&gt; I&#039;m not happy about adding a delay for all backends that in most 

&gt; cases will just slow users down pointlessly. I could see getting rid 

&gt; of the read, I guess, but then you&#039;re likely to get this error when 

&gt; redirecting to the new contact.

&gt;

&gt; I don&#039;t know enough about LDAP to know how common this is and how 

&gt; much it&#039;s worth compromising everyone else&#039;s experience because of it.



Sure, I can see that.



How about searching immediately, then try again one second later if you fail, with one further retry. That should avoid a delay for those that don&#039;t need it, but allow some leeway for those that do.



Probably not hugely common setup, but hopefully this suggestion can avoid that.</description> 
   <pubDate>Fri, 24 Oct 2008 09:54:50 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7478#t49937</link> 
  </item> 
   
  <item> 
   <title>I&#039;m okay with that if it works for you.</title> 
   <description>I&#039;m okay with that if it works for you.</description> 
   <pubDate>Sat, 25 Oct 2008 00:33:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7478#t50007</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title> 
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/turba/docs/CHANGES?r1=1.465&amp;r2=1.466&amp;ty=u
http://cvs.horde.org/diff.php/turba/lib/Forms/AddContact.php?r1=1.10&amp;r2=1.11&amp;ty=u</description> 
   <pubDate>Sat, 25 Oct 2008 01:29:21 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7478#t50012</link> 
  </item> 
   
  <item> 
   <title>Done for 2.3.1.</title> 
   <description>Done for 2.3.1.</description> 
   <pubDate>Sat, 25 Oct 2008 01:32:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7478#t50013</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
