6.0.0-alpha14
6/23/25

[#12956] ActiveSync Loop
Summary ActiveSync Loop
Queue Synchronization
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester rbe (at) tritem (dot) net
Created 02/05/2014 (4156 days ago)
Due
Updated 02/05/2014 (4156 days ago)
Assigned 02/05/2014 (4156 days ago)
Resolved 02/05/2014 (4156 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
02/05/2014 05:49:53 PM Michael Rubinsky State ⇒ Resolved
 
02/05/2014 05:47:44 PM rbe (at) tritem (dot) net Comment #7 Reply to this comment
Can you see if the latest Horde_ActiveSync package, just released 
today, fixes this for you?
Just updated to v2.12.4.
I have tried the same tests then before, and no more error concerning 
the sent folder synchronization.

So far, so good.

I will run additional tests and keep you informed.

Thanks again for your support and your responsiveness (as usual).

Kind.

Richard
02/05/2014 05:39:11 PM Michael Rubinsky Comment #6
Assigned to Michael Rubinsky
Reply to this comment
Can you see if the latest Horde_ActiveSync package, just released 
today, fixes this for you?
02/05/2014 05:08:58 PM Git Commit Comment #5 Reply to this comment
Changes have been made in Git (master):

commit ab71805c0168250d2147df9e00bf66a120945b5c
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Wed Feb 5 12:07:33 2014 -0500

     Some clients seem to crash when sending a AIRSYNCBASE_BODY 
element with an empty body.

     This is explicitly allowed in the specs, but at least WP8 crashes 
when it receives this.

     Possibly another cause for Bug: 12956

  .../lib/Horde/ActiveSync/Imap/Adapter.php          |   22 +++++++++++--------
  1 files changed, 13 insertions(+), 9 deletions(-)

http://git.horde.org/horde-git/-/commit/ab71805c0168250d2147df9e00bf66a120945b5c
02/05/2014 04:16:48 PM Git Commit Comment #4 Reply to this comment
Changes have been made in Git (master):

commit 369dc4dafb4f2bbabe3fab7329c4f2127f8533ed
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Wed Feb 5 11:11:54 2014 -0500

     Don't enforce this here.

     It's enforced by the backend, and only causes confusion when synchronizing
     the Sent Mail folder.

     Another possible fix for Bug: 12956.

  .../lib/Horde/ActiveSync/Imap/Adapter.php          |    9 ---------
  1 files changed, 0 insertions(+), 9 deletions(-)

http://git.horde.org/horde-git/-/commit/369dc4dafb4f2bbabe3fab7329c4f2127f8533ed
02/05/2014 04:16:45 PM Git Commit Comment #3 Reply to this comment
Changes have been made in Git (master):

commit 6c44c905e722037e0c4a9439015b9027b500c34b
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Wed Feb 5 11:08:06 2014 -0500

     Only update attenddees when the currently synching mailbox is INBOX.

     Possible fix for Bug: 12956.

  .../Core/lib/Horde/Core/ActiveSync/Driver.php      |    7 +++++--
  1 files changed, 5 insertions(+), 2 deletions(-)

http://git.horde.org/horde-git/-/commit/6c44c905e722037e0c4a9439015b9027b500c34b
02/05/2014 03:00:10 PM Michael Rubinsky Comment #2
Priority ⇒ 1. Low
State ⇒ Feedback
Reply to this comment
No attachments, and I cannot reproduce.
02/05/2014 01:49:04 PM rbe (at) tritem (dot) net Comment #1
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ ActiveSync Loop
Queue ⇒ Synchronization
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
Hi,

I have new problems with ActiveSync since version 2.12.2 (thanks again 
Michael for solving my previous problem).

My phone under WP8 and with a EAS account is now looping during 
synchronization (Horde_ActiveSync 2.12.3), causing the following 
problems :
- i'm not receiving the new messages
- i can't access the contacts and the maibox on the phone
- no more matching between the contacts and the incoming calls (i only 
see the phone numbers and not the contact names)

I ran an analysis and the problems occurs only AFTER i had accepted a 
meeting invitation on my phone (which is correctly synchronized with 
horde since version 2.12.2).
Accepting the meeting implies the creation of a new message in the 
sent mailbox folder.
After this, the loop is coming during the next synchronizations (not 
sure it is just after).

The found workaround is to move all the messages from my sent folder 
to a archive file (with O2013) and the sync becomes OK (after phone 
reboot and apache restart).

You'll find attached an extract of the sync log.

I believe that the error is becoming from the message :
NOTICE: [26533] Error saving state for synckey 
{52f160f2-b58c-4573-a135-5f0d58bfbacc}5: SQLSTATE[23000]: Integrity\
  constraint violation: 1062 Duplicate entry 
'{52f160f2-b58c-4573-a135-5f0d58bfbacc}5' for key 'PRIMARY' - removing 
previous sync state and t\
rying again.

If you need more information, tell me.

Thanks.

Richard

Saved Queries