sync only down not up

110 views
Skip to first unread message

ivo.sm...@gmail.com

unread,
Mar 7, 2014, 8:46:47 AM3/7/14
to tzp...@googlegroups.com
Hi,
I am trying to use TZPUSH for some time and every time I just tested it and found some problem. The last time (~1/2 year) I was unable to sync it at all. Today I was spending more time with it and found explanation of the expected format (with/without domain etc.) device id set manually and some sequence with TB restart etc. - Finally it works.
--So, it means, there is maybe more people struggling with that info and would be very helpful to find it at the plugin.

But another problem still persists:
--The synchronization is working only down (changed on Zarafa and updated in TB) and not up. And if the same contact is changed on Zarafa as well, it is copied to TB even if on both sides were added different field. So, that generates another question - "what does mean synchronization in TZPUSH?" Works just at contact level or tries at least some easy situation at field level? And what solution is used, if program can't decide? This could mean very nasty data lost.

And there is some small bug in list of calendar in TB, where to sync. When settings is open again, there is not visible which local calendar is synced. To get it, one need to try tick all calendars and that one, which could not be selected, is the right one, which is synced.

Thanks a lot for your work and good luck

Ivo

ivo.sm...@gmail.com

unread,
Mar 7, 2014, 8:53:31 AM3/7/14
to tzp...@googlegroups.com
Sorry, I've forgot:
Server Zentyal 3.2.8 /Zarafa
Client Kubuntu 13.10 / TB 24.3 + TZPUSH 1.8.1 (https, provisioning, Device id "pcpracovna", Use "," )

Mark Nethersole

unread,
Mar 12, 2014, 9:03:30 AM3/12/14
to tzp...@googlegroups.com
Sorry for delay.
Your first point. I will take that on board and add some better instructions on addon page.

Your third point. Tzpush does not sync calendars. So any problems there are nothing to do with tzpush.
I am working on a cal-sync version but it is not available anywhere except my own computer. So if you are using it, that's some serious hacking skills.

Second point. The identity of an address book card (card) relies on the ServerId property of the card. On first sync tzpush downloads all the address on the server and adds them to the thunderbird address book with the extra property of ServerID added to the card.
Then tzpush sends any cards that do not contain a ServerId to z-push. Zpush sends back new ServerId's which are added to the card.
On all sync actions tzpush stores the synckey it receives from zpush.
On subsequent syncs tzpush send the last synckey it has to zpush, Zpush replies with any new address or modified address since this synckey was used. They are added to thunderbird.
Tzpush then sends any new cards (cards without a ServerId) and any modified since the last sync. (tzpush stores a lastsynctime which it compares with the last modified property of the card )
Tzpush does not look into content of cards. This is why it is best to start with a blank address at one end (thunderbird or server). If not multiple contacts can be deleted at one end manually or using something like duplicate contact manager (mozilla addon).

I do not understand why tzpush is not sending in your setup. 
Please set extensions.tzpush.debugwbxml to "1" in thunderbird preference.
Add a new card in thunderbird, sync and let me know the output of thunderbird error console.

Thanks Mark
  

ivo.sm...@gmail.com

unread,
Mar 12, 2014, 10:11:04 AM3/12/14
to tzp...@googlegroups.com
Thank you for replay and first of all, sorry for a my mistake. I sure was talking about address-books and not calendar and absolutely have no idea, why I wrote calendar. So, please very much, just change calendar and replace it with address-book. :-) But the point is OK.

And there is some small bug in list of address-books in TB, where to sync. When settings is open again, there is not visible which local address-book is synced. To get it, one need to try tick all address-books and that one, which could not be selected, is the right one, which is synced.

ivo.sm...@gmail.com

unread,
Mar 12, 2014, 10:28:50 AM3/12/14
to tzp...@googlegroups.com
Thanks again for explaining how synchronization works. Just to be sure, with address in "Zpush replies with any new address or modified address" you mean contact resp. card and not the group of fields with address properties. But anyway, I would suggest to check a situation of changing the same card on server and in TB and let user decide which to use or let him/her edit it. Especially with address-book in public folders it's a blocker for usage.
Once again sorry for the mistake, maybe a friend asked me about calendar :-) It's the first time it has happened to me like this.

ivo.sm...@gmail.com

unread,
Mar 16, 2014, 5:56:42 PM3/16/14
to tzp...@googlegroups.com
And finally I am at the right computer, so to the main point, i.e. sync up.
I set >>extensions.tzpush.debugwbxml to "1"<< and test first sync in down direction (change e-mail in contact test003) and after click on TZ-Push>tz-sync, contact test003 had in TB new email. So worked OK. Then I added new contact test004 in TB and click on TZ-Push>tz-sync again, but nothing happend, no sync and in TB console were these 2 messages and after clicking on TZ-Push>tz-sync again I got these two messages once more again.

sending : <?xml version="1.0"?><Sync xmlns="AirSync:"><Collections><Collection><Class>Contacts</Class><SyncKey>{cf62ef89-0655-4fa7-ab47-a8dc317b8ad4}30</SyncKey><CollectionId>fcd5c7ede00a45a8bf32a39c6d5408a07d0200000000</CollectionId><DeletesAsMoves/><GetChanges/><WindowSize>100</WindowSize><Options><Conflict>1</Conflict><MIMESupport>0</MIMESupport></Options></Collection></Collections></Sync>
recieved : <?xml version="1.0"?><Sync xmlns="AirSync:"><Collections><Collection><Class>Contacts</Class><SyncKey>{cf62ef89-0655-4fa7-ab47-a8dc317b8ad4}30</SyncKey><CollectionId>fcd5c7ede00a45a8bf32a39c6d5408a07d0200000000</CollectionId><Status>1</Status></Collection></Collections></Sync>

If I could be more helpful, please let me know.

Mark Nethersole

unread,
Mar 17, 2014, 7:15:41 AM3/17/14
to tzp...@googlegroups.com
I seemed to have missed the bit about address books.
The address book in use should be highlighted in tzpush address book options.
Check the value of extensions.tzpush.abname it should be something like moz-abmdbdirectory://abook.mab.
Can you start a new test profile with one address book to see if it works.
Are you using any other extensions that access the address book?
Mark.
Reply all
Reply to author
Forward
0 new messages