<?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>Failing to delete multiple contacts as requested by device</title> 
  <pubDate>Thu, 09 Apr 2026 17:14:43 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/12554</link> 
  <atom:link rel="self" type="application/rss+xml" title="Failing to delete multiple contacts as requested by device" href="https://bugs.horde.org/ticket/12554/rss" /> 
  <description>Failing to delete multiple contacts as requested by device</description> 
 
   
   
  <item> 
   <title>Using Android 4.1 with contacts synced, if you try to remove</title> 
   <description>Using Android 4.1 with contacts synced, if you try to remove more than 1 contact only the first one in the input is removed (deleted).

Input is like:

2013-08-08T23:15:25+02:00 DEBUG: [6461] I      &lt;Remove&gt;
2013-08-08T23:15:25+02:00 DEBUG: [6461] I       &lt;ServerEntryId&gt;
2013-08-08T23:15:25+02:00 DEBUG: [6461] I         xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2013-08-08T23:15:25+02:00 DEBUG: [6461] I       &lt;/ServerEntryId&gt;
2013-08-08T23:15:25+02:00 DEBUG: [6461] I      &lt;/Remove&gt;
2013-08-08T23:15:25+02:00 DEBUG: [6461] I      &lt;Remove&gt;
2013-08-08T23:15:25+02:00 DEBUG: [6461] I       &lt;ServerEntryId&gt;
2013-08-08T23:15:25+02:00 DEBUG: [6461] I         yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
2013-08-08T23:15:25+02:00 DEBUG: [6461] I       &lt;/ServerEntryId&gt;
2013-08-08T23:15:25+02:00 DEBUG: [6461] I      &lt;/Remove&gt;

2013-08-08T23:15:25+02:00 INFO: [6461] Horde_Core_ActiveSync_Driver::_smartStatMessage(@Contacts@, Array)
2013-08-08T23:15:25+02:00 INFO: [6461] Updating state during delete
2013-08-08T23:15:25+02:00 INFO: [6461] Horde_Core_ActiveSync_Driver::_smartStatMessage(@Contacts@, Array)
2013-08-08T23:15:25+02:00 INFO: [6461] Updating state during delete
2013-08-08T23:15:25+02:00 INFO: [6461] Horde_Core_ActiveSync_Driver::deleteMessage() @Contacts@: Array
(
    [0] =&gt; xxxxxxxxxxxxxxxxxxxx
    [1] =&gt; yyyyyyyyyyyyyyyyyyyy
)

In the debug logs of Horde, there is only *one* delete:

Aug  8 23:15:25 user:debug HORDE: HORDE: [turba] SQL  (0.0403s)  
        SELECT object_id, owner_id, object_type, object_members, object_uid,
          object_firstname, object_lastname, object_middlenames,
          object_nameprefix, object_namesuffix, object_alias,
          object_yomifirstname, object_yomilastname, object_bday,
          object_anniversary, object_spouse, object_photo, object_phototype,
          object_homestreet, object_homepob, object_homecity,
          object_homeprovince, object_homepostalcode, object_homecountry,
          object_workstreet, object_workpob, object_workcity,
          object_workprovince, object_workpostalcode, object_workcountry,
          object_otherstreet, object_otherpob, object_othercity,
          object_otherprovince, object_otherpostalcode, object_othercountry,
          object_department, object_manager, object_assistant, object_tz,
          object_homeemail, object_homephone, object_homephone2, object_homefax,
          object_workphone, object_workphone2, object_cellphone,
          object_carphone, object_radiophone, object_companyphone,
          object_assistantphone, object_fax, object_pager, object_title,
          object_role, object_company, object_logo, object_logotype,
          object_category, object_notes, object_url, object_freebusyurl,
          object_pgppublickey, object_smimepublickey, object_imaddress,
          object_imaddress2, object_imaddress3, object_workemail FROM
          turba_objects WHERE (object_uid =
          &#039;xxxxxxxxxxxxxxxxxxxxxxxxxxx&#039; AND
          owner_id = &#039;zzzzzzzzzzzzzzzzzzz&#039;) [pid 6461 on line 319 of &quot;/usr/share/pear/Horde/Db/Adapter/Mysqli.php&quot;]
Aug  8 23:15:25 user:debug HORDE: HORDE: [turba] SQL  (0.0019s)  
        SELECT object_id, owner_id, object_type, object_members, object_uid,
          object_firstname, object_lastname, object_middlenames,
          object_nameprefix, object_namesuffix, object_alias,
          object_yomifirstname, object_yomilastname, object_bday,
          object_anniversary, object_spouse, object_photo, object_phototype,
          object_homestreet, object_homepob, object_homecity,
          object_homeprovince, object_homepostalcode, object_homecountry,
          object_workstreet, object_workpob, object_workcity,
          object_workprovince, object_workpostalcode, object_workcountry,
          object_otherstreet, object_otherpob, object_othercity,
          object_otherprovince, object_otherpostalcode, object_othercountry,
          object_department, object_manager, object_assistant, object_tz,
          object_homeemail, object_homephone, object_homephone2, object_homefax,
          object_workphone, object_workphone2, object_cellphone,
          object_carphone, object_radiophone, object_companyphone,
          object_assistantphone, object_fax, object_pager, object_title,
          object_role, object_company, object_logo, object_logotype,
          object_category, object_notes, object_url, object_freebusyurl,
          object_pgppublickey, object_smimepublickey, object_imaddress,
          object_imaddress2, object_imaddress3, object_homeemail,
          object_workemail FROM turba_objects WHERE object_id IN
          (&#039;wwwwwwwwwwwwwwwww&#039;) AND owner_id =
          &#039;zzzzzzzzzzzzzzzzzzzzzzzzzzz&#039; [pid 6461 on line 319 of &quot;/usr/share/pear/Horde/Db/Adapter/Mysqli.php&quot;]
Aug  8 23:15:25 user:debug HORDE: HORDE: [turba] SQL  (0.0028s)  
        DELETE FROM turba_objects WHERE object_id = &#039;wwwwwwwwwwwwwwww&#039; [pid 6461 on line 319 of &quot;/usr/share/pear/Horde/Db/Adapter/Mysqli.php&quot;]
</description> 
   <pubDate>Thu, 08 Aug 2013 21:37:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12554#t79895</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

commit 5777c51990f6</title> 
   <description>Changes have been made in Git (master):

commit 5777c51990f6b3406d05d29c2d4d8fd1ed3418b9
Author: Michael J Rubinsky &lt;mrubinsk@horde.org&gt;
Date:   Thu Aug 8 18:14:13 2013 -0400

    Bug: 12554 Turba_Driver::delete() does not return a boolean.

 turba/lib/Api.php |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/5777c51990f6b3406d05d29c2d4d8fd1ed3418b9</description> 
   <pubDate>Thu, 08 Aug 2013 22:15:05 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12554#t79898</link> 
  </item> 
   
  <item> 
   <title>Mike, I am not sure this solves the problem.

I think the </title> 
   <description>Mike, I am not sure this solves the problem.

I think the function deleteMessage in ActiveSync/Driver.php takes an array:

     * @param array $ids        The message ids to delete
    public function deleteMessage($folderid, array $ids)

And in this case, as it is a contact delete:

        case self::CONTACTS_FOLDER_UID:
            try {
                $this-&gt;_connector-&gt;contacts_delete($ids);

But param in connector function is string, not array:

     * @param string $uid  The UID of the contact to remove
    public function contacts_delete($uid)
</description> 
   <pubDate>Thu, 08 Aug 2013 22:29:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12554#t79901</link> 
  </item> 
   
  <item> 
   <title>It&#039;s just the phpdoc that is wrong, the method that the conn</title> 
   <description>It&#039;s just the phpdoc that is wrong, the method that the connector method calls takes an array. The problem is since the driver&#039;s delete method did not return a boolean, the Turba_Api::delete method would exit after the first iteration.</description> 
   <pubDate>Thu, 08 Aug 2013 22:42:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12554#t79902</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

commit 2440279642f1</title> 
   <description>Changes have been made in Git (master):

commit 2440279642f1892a1f7ac9dcb5e7466d283d3165
Author: Michael J Rubinsky &lt;mrubinsk@horde.org&gt;
Date:   Thu Aug 8 18:43:37 2013 -0400

    Fix phpdoc related to Bug: 12554

 .../Core/lib/Horde/Core/ActiveSync/Connector.php   |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

http://git.horde.org/horde-git/-/commit/2440279642f1892a1f7ac9dcb5e7466d283d3165</description> 
   <pubDate>Thu, 08 Aug 2013 22:44:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12554#t79903</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
