6.0.0-beta1
10/16/25

[#11919] Activesync broken
Summary Activesync broken
Queue Synchronization
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester martin.ament (at) gmx (dot) de
Created 12/25/2012 (4678 days ago)
Due
Updated 12/25/2012 (4678 days ago)
Assigned
Resolved 12/25/2012 (4678 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
12/25/2012 10:00:56 PM Michael Rubinsky Comment #3
Assigned to Michael Rubinsky
State ⇒ Resolved
Reply to this comment
Committed, and released new version.

Thanks!
12/25/2012 09:57:11 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit df855c4671f58bfc36468b6c76ce7f10656a668f
Author: martin.ament@gmx.de <martin.ament@gmx.de>
Date:   Tue Dec 25 16:55:42 2012 -0500

     Bug: 11919 Fix variable name.
     Signed-off-by: Michael J Rubinsky <mrubinsk@horde.org>

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

http://git.horde.org/horde-git/-/commit/df855c4671f58bfc36468b6c76ce7f10656a668f
12/25/2012 09:40:57 PM martin (dot) ament (at) gmx (dot) de Comment #1
Priority ⇒ 1. Low
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Synchronization
Summary ⇒ Activesync broken
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
I can't Sync anymore with activesync.

-- debug --
2012-12-25T21:14:41+00:00 DEBUG: Validating UTF-8 data coming from
2012-12-25T21:14:41+00:00 DEBUG: Found invalid UTF-8 data, try 
different encodings.
2012-12-25T21:14:41+00:00 DEBUG: Could not encode UTF-8 data. Removing 
non 7-bit characters.
----- end debug --

-- error_log --
  PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted 
(tried to allocate 522977311 bytes) in 
/usr/share/php5/PEAR/Horde/ActiveSync/Imap/Adapter.php on line 1202
-- End error_log --

I investigated Adapter.php and i saw that there was an endless loop 
causing the Memory error.
In Line 1205 there was a typo. $chuck_size vs. $chunk_size

After changing this, the code was working as expected.

1205c1206
<                 $data = substr($data, $chunk_size);
---
                 $data = substr($data, $chuck_size);

Saved Queries