[sync] SyncML update

Karsten Fourmont fourmont at gmx.de
Sat Oct 7 06:55:24 PDT 2006


Hi,

I finally managed to do some outstanding improvments to the syncml code:

They are in cvs by now. Here are the changes:

1) Logging

This requires updates of SyncML and RPC packages.
Both packages are now using the same debug dir defined in
framework/RPC/RPC/syncml.php
In addition to the logged packets (*.xml/*.wbxml) there are now three logs:

a) data.txt: the previous log.txt. Contains infos about exchanged and 
converted data items. Useful for import/export problems. It now decodes 
base64 data from Sync4j/Funambol for better readability.
b) devinf.txt: the device information. If somebody posts to the list 
with a "new" device, it would be nice to post the devinf data from this 
file.
c) syncml_log.txt: a "copy" of the syncml logging that went to horde's 
log. Useful to check if authorization and protocol stuff works.

When posting issues to the list, the relevant parts of a) or c) are 
always helpful.

2) Changes to SyncML protocol handling

Changes to the SycnML package:

- Handling of MoreData (large objects). The SE m600i requires this
- Fixed handling of NextMessage Alert. Works now in a way that makes 
even the conformance test suite happy.
- Support for NumberOfChanges: small thing, but required for full 
protocol conformance
- Syncing multiple database at once should work now.
- The funambol connectors require a special order for messages: Server 
Sync data is only allowed to be sent after a NextMessage Alert. It's 
implemented now as a special case for the Funambol clients.
- 'b64' format info on sync items: requied by Funambol connectors


3) (small) Changes to contacts:
This requires an update of Turba and SyncML package

- Improved automatic detection of vcard2.1/vcard3.0. Should work for SE 
P990 now?
- Improved import/export of contact data. Should also fix issues with 
empty names on new SE phones.


This should make it work for new SE phones (M600i, K750i), older SE 
phones (P900i, P990i) and the funambol connectors (Outlook, blackberry).

Altogether more than 500 new lines of code. I hope this will improve 
things ;-)

Cheers,
  Karsten



More information about the sync mailing list