<?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>Sync with SonyEricsson ELM (ActiveSync)</title> 
  <pubDate>Fri, 10 Apr 2026 17:02:40 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/10461</link> 
  <atom:link rel="self" type="application/rss+xml" title="Sync with SonyEricsson ELM (ActiveSync)" href="https://bugs.horde.org/ticket/10461/rss" /> 
  <description>Sync with SonyEricsson ELM (ActiveSync)</description> 
 
   
   
  <item> 
   <title>I&#039;m trying to sync my phone&#039;s calendar and contacts with hor</title> 
   <description>I&#039;m trying to sync my phone&#039;s calendar and contacts with horde.

The phone gets connected successfully to the server, but the process of syncing will fail at some point.
In activesync-log I could following entries, which might be related to the issue:

first:
2011-08-26T15:00:07+02:00 DEBUG: Horde::changeMessage(Contacts, )
2011-08-26T15:00:07+02:00 DEBUG: ActiveSync_Driver_Horde::_smartStatMessage:Contacts:20110826150007.e-9jZ9cNCvpOV5jXl9fjSLA@horde4.uni-hannover.de
2011-08-26T15:00:07+02:00 DEBUG: Updating state during change
2011-08-26T15:00:07+02:00 ERR: QUERY FAILED: Column &#039;sync_key&#039; cannot be null

INSERT INTO horde_activesync_map (message_uid, sync_modtime, sync_key, sync_devid, sync_folderid, sync_user) VALUES (&#039;20110826150007.e-9jZ9cNCvpOV5jXl9fjSLA@horde4.uni-hannover.de&#039;, 1314363607, NULL, &#039;SEMC359874037050544&#039;, &#039;Contacts&#039;, &#039;michael.groene@uni-hannover.de&#039;)
2011-08-26T15:00:07+02:00 ERR: Returning HTTP 500:QUERY FAILED: Column &#039;sync_key&#039; cannot be null

INSERT INTO horde_activesync_map (message_uid, sync_modtime, sync_key, sync_devid, sync_folderid, sync_user) VALUES (&#039;20110826150007.e-9jZ9cNCvpOV5jXl9fjSLA@horde4.uni-hannover.de&#039;, 1314363607, NULL, &#039;SEMC359874037050544&#039;, &#039;Contacts&#039;, &#039;michael.groene@uni-hannover.de&#039;)
2011-08-26T15:00:07+02:00 INFO: User michael.groene@uni-hannover.de logged off


And in another try I got this:
2011-08-26T15:03:53+02:00 DEBUG: [SEMC359874037050544] Saving state: Array
(
    [0] =&gt; {4e579931-6998-4e68-9eeb-3b64824b99b2}2
    [1] =&gt;
    [2] =&gt; SEMC359874037050544
    [3] =&gt; 0
    [4] =&gt; Contacts
    [5] =&gt; michael.groene@uni-hannover.de
)

2011-08-26T15:03:53+02:00 ERR: [SEMC359874037050544] Error saving state for synckey {4e579931-6998-4e68-9eeb-3b64824b99b2}2: QUERY FAILED: Duplicate entry &#039;{4e579931-6998-4e68-9eeb-3b64824b99b2}2&#039; for key &#039;PRIMARY&#039;

INSERT INTO horde_activesync_state (sync_key, sync_data, sync_devid, sync_time, sync_folderid, sync_user) VALUES (&#039;{4e579931-6998-4e68-9eeb-3b64824b99b2}2&#039;, &#039;&#039;, &#039;SEMC359874037050544&#039;, 0, &#039;Contacts&#039;, &#039;michael.groene@uni-hannover.de&#039;)
2011-08-26T15:03:53+02:00 DEBUG: O   &lt;Folders/&gt;
2011-08-26T15:03:53+02:00 DEBUG: O  &lt;Synchronize/&gt;
2011-08-26T15:03:53+02:00 INFO: User michael.groene@uni-hannover.de logged off


Any ideas?</description> 
   <pubDate>Fri, 26 Aug 2011 13:13:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10461#t67130</link> 
  </item> 
   
  <item> 
   <title>Please provide a full sync log. The error that is causing th</title> 
   <description>Please provide a full sync log. The error that is causing these issues likely occurs earlier in the log.</description> 
   <pubDate>Sun, 28 Aug 2011 00:50:55 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10461#t67138</link> 
  </item> 
   
  <item> 
   <title>&gt; Please provide a full sync log. The error that is causing </title> 
   <description>&gt; Please provide a full sync log. The error that is causing these 
&gt; issues likely occurs earlier in the log.

Hmm, I don&#039;t really see other errors, but see attachment.</description> 
   <pubDate>Sun, 28 Aug 2011 10:02:40 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10461#t67143</link> 
  </item> 
   
  <item> 
   <title>And after I reset the device in user preferences, the first </title> 
   <description>And after I reset the device in user preferences, the first sync, see attachment</description> 
   <pubDate>Sun, 28 Aug 2011 10:03:46 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10461#t67144</link> 
  </item> 
   
  <item> 
   <title>&gt; And after I reset the device in user preferences, the firs</title> 
   <description>&gt; And after I reset the device in user preferences, the first sync, see 
&gt; attachment

This log looks like a broken client. Under no circumstances should a client send a synckey of &#039;0&#039; AND incoming changes. A synckey of 0 is only sent during an initial sync handshake, or when resetting the client state on the server (as when the a client&#039;s account is reset).

According the the AS docs:
A synchronization key of value 0 initializes the synchronization state on the server and causes a full synchronization of the collection. The server sends a response that includes a new synchronization key value.

Sending a set of changes from the client to the server during a synchronization initialization makes no sense, since the entire client database is considered empty at this point.

What your log shows is this: First, the server is sending a KEYMISM error, which means that the server received an invalid or expired synckey (this might be due to the previous errors you experienced, or from resetting the account). What is supposed to happen next is that the client wipes the local datastore and the server sends all items to the device.</description> 
   <pubDate>Fri, 02 Sep 2011 16:57:04 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10461#t67259</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Prevent brok</title> 
   <description>Changes have been made in Git for this ticket:

Prevent broken clients from corrupting server data.
Related to Bug: 10461

 1 files changed, 9 insertions(+), 0 deletions(-)
http://git.horde.org/horde-git/-/commit/5a2dbd66982a3dc71f5df3c31ed990f744cd9d05</description> 
   <pubDate>Fri, 02 Sep 2011 17:22:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10461#t67263</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

some logging</title> 
   <description>Changes have been made in Git for this ticket:

some logging to possibly help track down Bug: 10461

 1 files changed, 2 insertions(+), 0 deletions(-)
http://git.horde.org/horde-git/-/commit/8a509451c494aed7ed43d255ecb488aff79d71ce</description> 
   <pubDate>Fri, 02 Sep 2011 17:22:56 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10461#t67264</link> 
  </item> 
   
  <item> 
   <title>I&#039;ve added some safe guards to prevent the incoming changes </title> 
   <description>I&#039;ve added some safe guards to prevent the incoming changes from being applied during the synckey 0 sync. This was the cause of the 500 error. The other duplicate key error was a result of the first error and is expected. I&#039;ve tweaked the log message to make it sound less disastrous though.

Since this is a client issue, not sure what else I can do from the Horde side.</description> 
   <pubDate>Fri, 02 Sep 2011 23:16:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10461#t67268</link> 
  </item> 
   
  <item> 
   <title>Seems to work better, for calendars, contacts won&#039;t work cor</title> 
   <description>Seems to work better, for calendars, contacts won&#039;t work correctly, but I will test a little bit more, next week.

Some little misstakes are in Sync.php though:
[09-Sep-2011 16:17:25] PHP Fatal error:  Undefined class constant &#039;SYNC_STATUS_PROTERROR&#039; in /var/www/horde4/pear/php/Horde/ActiveSync/Request/Sync.php on line 233

Think it should be self::STATUS_PROTERROR.
Same goes for line 99</description> 
   <pubDate>Fri, 09 Sep 2011 14:53:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10461#t67394</link> 
  </item> 
   
  <item> 
   <title>Seems to work better, for calendars, contacts won&#039;t work cor</title> 
   <description>Seems to work better, for calendars, contacts won&#039;t work correctly, but I will test a little bit more, next week.

Some little misstakes are in Sync.php though:
[09-Sep-2011 16:17:25] PHP Fatal error:  Undefined class constant &#039;SYNC_STATUS_PROTERROR&#039; in /var/www/horde4/pear/php/Horde/ActiveSync/Request/Sync.php on line 233

Think it should be self::STATUS_PROTERROR.
Same goes for line 99</description> 
   <pubDate>Fri, 09 Sep 2011 16:15:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10461#t67395</link> 
  </item> 
   
  <item> 
   <title>&gt; Some little misstakes are in Sync.php though:
&gt; [09-Sep-2</title> 
   <description>&gt; Some little misstakes are in Sync.php though:
&gt; [09-Sep-2011 16:17:25] PHP Fatal error:  Undefined class constant 
&gt; &#039;SYNC_STATUS_PROTERROR&#039; in 
&gt; /var/www/horde4/pear/php/Horde/ActiveSync/Request/Sync.php on line 233

I already fixed at least one of those constants, along with some other improvements. I&#039;ll check on the other one tonight.</description> 
   <pubDate>Fri, 09 Sep 2011 16:54:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10461#t67396</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

one more pla</title> 
   <description>Changes have been made in Git for this ticket:

one more place to fix this constant
Bug: 10461

 1 files changed, 1 insertions(+), 1 deletions(-)
http://git.horde.org/horde-git/-/commit/4f6f19ec8107bc1fa18cebb3e973c456999a7016</description> 
   <pubDate>Sat, 10 Sep 2011 14:43:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/10461#t67408</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
