6.0.0-beta1
7/18/25

[#10822] Android (ActiveSync) only syncing 20 contacts
Summary Android (ActiveSync) only syncing 20 contacts
Queue Turba
Queue Version Git master
Type Bug
State Resolved
Priority 2. Medium
Owners mrubinsk (at) horde (dot) org
Requester mail (at) xeroc (dot) org
Created 11/30/2011 (4979 days ago)
Due 11/30/2011 (4979 days ago)
Updated 12/19/2011 (4960 days ago)
Assigned 12/16/2011 (4963 days ago)
Resolved 12/19/2011 (4960 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
12/19/2011 05:24:08 PM Michael Rubinsky Comment #13
State ⇒ Resolved
Reply to this comment
Resolving again, since this is not related to the original issue this 
ticket was for.

Please either use the mailing list for support, or if you believe your 
UIDs are being incorrectly represented by activesync, open a new bug 
report.
12/19/2011 05:21:04 PM Michael Rubinsky Comment #12 Reply to this comment
It looks like you are using non-globally-unique UIDs.

Are your UIDs really just 3 to 4 characters long? What is the data 
source for these contacts?
12/16/2011 07:00:53 PM sfthk (at) web (dot) de New Attachment: validate.log Download
 
12/16/2011 06:59:12 PM sfthk (at) web (dot) de New Attachment: SAMSUNG.log Download
 
12/16/2011 05:21:46 PM sfthk (at) web (dot) de Comment #11 Reply to this comment
ERR: Internal Horde Error: multiple turba objects with same objectId.

After that Error comes up for the first time no new contacts are synced.

Full log comes later

12/16/2011 04:43:42 PM Michael Rubinsky Comment #10
State ⇒ Feedback
Reply to this comment
I would need a full log of the sync. Start with a fresh AS account on 
the device and log the entire sync process. See 
http://wiki.horde.org/ActiveSync for instructions on how to get a AS 
log.
12/16/2011 04:26:56 PM sfthk (at) web (dot) de Comment #9 Reply to this comment
I'm having the same problem. Only 6 of ~200 Contacts. I updated to 
webmail 4.0.5 which should fix this issue, updated schemas. (mysql 
column type changed from text to mediumtext). Nothing changed.
Calendars are working.
The phone connects every second with:

"POST 
/Microsoft-Server-ActiveSync?Cmd=Sync&User=user&DeviceId=SAMSUNGxxxxxxxxxx&DeviceType=SAMSUNGxxxxx HTTP/1.1" 
200

In sync_data (horde_activesync_state) is something like this (sync_key:45):
a:208:{
i:0;a:3:{s:2:"id";s:5:"user1";s:4:"type";s:6:"change";s:5:"flags";s:10:"NewMessage";}
i:1;a:3:{s:2:"id";s:8:"user2";s:4:"type";s:6:"change";s:5:"flags";s:10:"NewMessage";}
....
and the same again with a sync_key 46

Android 2.3.3
Both, the Native calendar app and Touchdown are not working.
Provisioning in Horde4 is disabled.

Any hints?

12/06/2011 03:21:51 PM Michael Rubinsky Comment #8
State ⇒ Resolved
Reply to this comment
Fixed in Git.

Required changes to both ActiveSync and Db packages. Will be included 
in next bug fix release of both packages.
12/06/2011 01:28:27 PM Michael Rubinsky Comment #7 Reply to this comment
So, I actually enabled provisioning and switched table def to blob. 
What ever happend, No synchronization was done. neither calendar nor 
contacts.
Not every device supports provisioning. Some android devices advertise 
that they support it in the headers they send, but in fact do NOT 
support it, thus syncing does not work with it enabled (this is what 
the 'Allow' setting is for - to allow devices that support it to use 
it, but sill allow broken clients to connect).
12/06/2011 07:51:55 AM mail (at) xeroc (dot) org Comment #6 Reply to this comment
A few minutes later every single contacts was synced.

Thanks
12/06/2011 07:34:10 AM mail (at) xeroc (dot) org Comment #5 Reply to this comment
That sound reasonable.
I once tried syncing step-wise adding 49 contacts at a time and 
re-sync android. that was working fine.
Gonna try to change the table field into let's say BLOB.
So, I actually enabled provisioning and switched table def to blob. 
What ever happend, No synchronization was done. neither calendar nor 
contacts.

I disabled provisioning and switched tabledef to LONGTEXT and then 
synchronization was working well.
Right now it stopped after syncing 330 contacts which might be because 
of merging contacts. No idea yet.

Also I dont know yet what going wrong when enabling provisioning but 
thats a different thing.

So please, for the next mergeskript consider changing TEXT to LONGTEXT 
for the active state definition.

Best regards and thanks alot for your incredible piece of software.
  -- Fabian
12/04/2011 08:04:24 PM Michael Rubinsky State ⇒ Feedback
 
12/01/2011 11:47:59 AM mail (at) xeroc (dot) org Comment #4 Reply to this comment
I cannot reproduce this, but I don't have anywhere near 730 
contacts. This sounds like you might be hitting the field limit for 
the horde_active_sync_state.sync_data field.
That sound reasonable.
I once tried syncing step-wise adding 49 contacts at a time and 
re-sync android. that was working fine.
Gonna try to change the table field into let's say BLOB.

Gonna report as soon as possible
12/01/2011 04:56:51 AM Michael Rubinsky Comment #3
Priority ⇒ 2. Medium
State ⇒ Assigned
Assigned to Michael Rubinsky
Reply to this comment
I cannot reproduce this, but I don't have anywhere near 730 contacts. 
This sounds like you might be hitting the field limit for the 
horde_active_sync_state.sync_data field.

On my system, our migrations create this as a "text" field on MySQL 
which seems to have a limit of 64kb. We probably need to change this 
to have our migrations generate the equivalent of MySQL's mediumtext 
field.
11/30/2011 08:03:37 PM mail (at) xeroc (dot) org Comment #2
New Attachment: ticket.log Download
Reply to this comment
attachment
11/30/2011 08:03:08 PM mail (at) xeroc (dot) org Comment #1
Priority ⇒ 3. High
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Due ⇒ 11/30/2011
Summary ⇒ Android (ActiveSync) only syncing 20 contacts
Type ⇒ Bug
Queue ⇒ Turba
Reply to this comment
I have to android devices.
One with froyo and one with gingerbread. Both devices have the same problem.

the one with gingerbread only syncs 4 contacts and non more. and the 
froyo device stops after syncing 50 without provisioning and 20 with 
enabled provisioning.

logs (contact sync only) from froyo attached.

The problem also occurs with touchdown, there abouth 25 contacts are 
synced. no error messages. neither on device nor PHP/apache

The system I installed the latest GIT on is a debian squeeze (but the 
same problem appears on a debian 5.0)

I appriciate your help.

Saved Queries