Hi Ulle,
Syncing calendars from other users can be set in esync settings (given the
appropriate rights to read and edit).
This works well for initial sync, but later changes in other users calendars
don’t get synced until the OWN calender has got changes. This might be
related to the new code beeing based on syncstate returned by
AlterPingChanges … .
AlterPingChanges in egroupware/calendar/inc/class.calendar_zpush.inc.php
generates a MAX(cal_modified) lookup only for entries owned by the current
user (and the groups he belongs to). I think it should lookup calendar
changes for all the users (groups) the user has choosen in esync settings as
well.
So my suggestion for improvement is this additional code for function
AlterPingChanges(…) in
egroupware/calendar/inc/class.calendar_zpush.inc.php :
Hmm, seems the mailing list bridge “eats” again your code, it’s visible
in Nabble:
http://egroupware.219119.n3.nabble.com/EAS-Activesync-eSync-z-push-in-current-master-of-egroupware-Calendar-syncing-calendars-from-ohter-uss-tp4013774.html
But not in what Nabble sends to the mailing list:
https://sourceforge.net/p/egroupware/mailman/message/35252037/
All that should not be necessary, as I understand the z-push code.
If your phone is subscribed to multiple folders, it should initialize
the changes sink for each synced folder:
https://github.com/EGroupware/activesync/blob/master/inc/class.activesync_backend.inc.php#L457
When ChangesSink is called, we request changes for every folder in line 495:
https://github.com/EGroupware/activesync/blob/master/inc/class.activesync_backend.inc.php#L495
Can you check your logs, if ChangesSinkInitialise is called for the
folders your are missing (other users calendar)?
@Sebastian: Is my reasoning true, that z-push calls a backends
ChangesSinkInitialise for every folder synced on a client?
Ralf
This works for me right now. Surely there are more elegant ways of solving
this.
Cheers,
Ulle
–
Ralf Becker
Director Software Development
Stylite AG
Isaac-Fulda-Allee 9 | Tel. +49 6131 32702-0
D-55124 Mainz | Fax. +49 6131 32702-70
Email: rb@stylite.de
www.stylite.de | www.egroupware.org
Managing Directors: Andre Keller | Gudrun Mueller
Chairman of the supervisory board: Prof. Dr. Birger Leon Kropshofer
VAT DE214280951 | Registered HRB 46224 Mainz Germany