[sync] Nokia C7-00 or symbian^3

Thomas Trethan thomas at trethan.net
Tue Apr 19 19:46:14 UTC 2011


> i have installed Horde Groupware Webmail Edition 1.29 and i have been
> doing any test with Nokia E71, E72, E5, all the test were very well. I
> could sync with SyncML the calendar, notes and guide. After this, i
> tried sync with a Nokia C7-00 and i could sync notes and guide, but
> the calendar do not sync, all the entries on the server are discarted
> by the telephone.

After doing some research I found the reason:

in lib/SyncML/Sync.php in the constructor the parameter $clientURI is "./c:calendar1"; in the devinf the device states "./c:calendar". When Sync.php wants to get the contentType via $device->getPreferredContentTypeClient() those two values don't match and the Type is set defaulty to "text/calendar". According to devinf the mobile phone wants "text/x-vcalendar" which doesn't match. Therefore all received entries are ignored. Furthermore I found out, that the device really seems to send "./c:calendar1" (see debugging wbxml logs), but don't know why...

However, here's a quick hack to solve the problem in lib/SyncML/Device/Nokia.php: in the function convertServer2Client() add the following code before writing to the log file:

$di = $_SESSION['SyncML.state']->deviceInfo;
if (stristr($di->Mod, 'C7-00') === false) {
$contentType = 'text/x-vcalendar';
}

Regards, Tom


More information about the sync mailing list