[sync] Nokia n95 Sync with Horde

Michael Weber m.weber at olserv.de
Tue Jun 26 13:58:56 UTC 2007


Hello Sync liste,

i try since some houres to sync my mobile phone Nokia n95 to horde.
I've installed the today Snapshot with turba, kronolith, mnemo and nag.

First I tried the protocoll 1.2 - this Error appears in my horde.log:
Jun 26 15:45:54 HORDE [error] [horde] SyncML: No DTD found for /4609 [on 
line 62 of "/kunden/96687_53125/pear/lib/php/Horde/RPC/syncml_wbxml.php"]

The Client Request File is:
<?xml version="1.0"?>
<!DOCTYPE SyncML PUBLIC "-//SYNCML//DTD SyncML 1.2//EN" 
"http://www.openmobilealliance.org/tech/DTD/OMA-TS-SyncML_RepPro_DTD-V1_2.dtd">
<SyncML xmlns="syncml:SYNCML1.2">
    <SyncHdr>
        <VerDTD>1.2</VerDTD>
        <VerProto>SyncML/1.2</VerProto>
        <SessionID>19</SessionID>
        <MsgID>1</MsgID>
        <Target>
            <LocURI>http://intern.olserv.net/horde/rpc.php</LocURI>
        </Target>
        <Source>
            <LocURI>IMEI:352255019274111</LocURI>
        </Source>
        <Meta>
            <MaxMsgSize xmlns="syncml:metinf">10000</MaxMsgSize>
        </Meta>
    </SyncHdr>
    <SyncBody>
        <Alert>
            <CmdID>1</CmdID>
            <Data>201</Data>
            <Item>
                <Target>
                    <LocURI>./contacts</LocURI>
                </Target>
                <Source>
                    <LocURI>./C:Contacts.cdb</LocURI>
                </Source>
                <Meta>
                    <Anchor xmlns="syncml:metinf">
                        <Last/>
                        <Next>20070626T134453Z</Next>
                    </Anchor>
                </Meta>
            </Item>
        </Alert>
        <Put>
            <CmdID>2</CmdID>
            <Meta>
                <Type 
xmlns="syncml:metinf">application/vnd.syncml-devinf+wbxml</Type>
            </Meta>
            <Item>
                <Source>
                    <LocURI>./devinf12</LocURI>
                </Source>
                <Data>                <unknown>
                    <unknown>1.2</unknown>
                    <unknown>NOKIA</unknown>
                    <unknown>N95</unknown>
                    <unknown/>
                    <unknown>V 11.0.026</unknown>
                    <unknown/>
                    <unknown>IMEI:352255019274111</unknown>
                    <unknown>phone</unknown>
                    <unknown/>
                    <unknown/>
                    <unknown/>
                    <unknown>
                        <unknown>./C:Contacts.cdb</unknown>
                        <unknown>Contacts</unknown>
                        <unknown>8</unknown>
                        <unknown>
                            <unknown>text/x-vcard</unknown>
                            <unknown>2.1</unknown>
                        </unknown>
                        <unknown>
                            <unknown>text/x-vcard</unknown>
                            <unknown>2.1</unknown>
                        </unknown>
                        <unknown>
                            <unknown>text/x-vcard</unknown>
                            <unknown>2.1</unknown>
                            <unknown>
                                <unknown>BEGIN</unknown>
                                <unknown/>
                                <unknown>256</unknown>
                                <unknown>VCARD</unknown>
                                <unknown>Begin</unknown>
                            </unknown>
                            <unknown>
                                <unknown>END</unknown>
                                <unknown/>
                                <unknown>256</unknown>
                                <unknown>VCARD</unknown>
                                <unknown>End</unknown>
                            </unknown>
                            <unknown>
                                <unknown>VERSION</unknown>
                                <unknown/>
                                <unknown>256</unknown>
                                <unknown>2.1</unknown>
                                <unknown>Version</unknown>
                            </unknown>
                            <unknown>
                                <unknown>REV</unknown>
                                <unknown/>
                                <unknown>256</unknown>
                                <unknown>Revision</unknown>
                            </unknown>
                            <unknown>
                                <unknown>N</unknown>
                                <unknown/>
                                <unknown>256</unknown>
                                <unknown>Name</unknown>
                            </unknown>
                            <unknown>
                                <unknown>ADR</unknown>
                                <unknown/>
                                <unknown>256</unknown>
                                <unknown>Address</unknown>
                                <unknown>
                                    <unknown>TYPE</unknown>
                                    <unknown/>
                                    <unknown>HOME</unknown>
                                    <unknown>WORK</unknown>
                                    <unknown>Type</unknown>
                                </unknown>
                            </unknown>

[SNIP]

                    </unknown>
                </unknown>
</Data>
            </Item>
        </Put>
        <Get>
            <CmdID>3</CmdID>
            <Meta>
                <Type 
xmlns="syncml:metinf">application/vnd.syncml-devinf+wbxml</Type>
            </Meta>
            <Item>
                <Target>
                    <LocURI>./devinf12</LocURI>
                </Target>
            </Item>
        </Get>
        <Final/>
    </SyncBody>
</SyncML>


syncml_server_0.wbxml is empty.

Dann habe ich es noch einmal mit dem 1.1er Protokoll ausprobiert - hier 
passiert schon ein wenig mehr.
I've also tried with the 1.1 Protocol - Here what appears in the horde.log:

Jun 26 15:50:58 HORDE [debug] [horde] SyncML: New session created: 
syncmlIMEI3522550192741115 [on line 172 of 
"/kunden/96687_53125/pear/lib/php/SyncML.php"]
Jun 26 15:50:58 HORDE [debug] [horde] SyncML: checking auth for user=mwe 
[on line 261 of "/kunden/96687_53125/pear/lib/php/SyncML/State.php"]
Jun 26 15:50:58 HORDE [debug] [horde] SQL Query by 
Auth_sql::_authenticate(): SELECT * FROM horde_users WHERE user_uid = ? 
[on line 116 of "/kunden/96687_53125/pear/lib/php/Horde/Auth/sql.php"]
Jun 26 15:50:58 HORDE [debug] [horde] SQL Query by 
Prefs_sql::retrieve(): SELECT pref_scope, pref_name, pref_value FROM 
horde_prefs WHERE pref_uid = ? AND (pref_scope = ? OR pref_scope = 
'horde') ORDER BY pref_scope [on line 137 of 
"/kunden/96687_53125/pear/lib/php/Horde/Prefs/sql.php"]
Jun 26 15:50:58 HORDE [debug] [horde] SyncML: authorized=1 version=1 
msgid=1 source=IMEI:352255019274111 
target=http://intern.olserv.net/horde/rpc.php user=mwe charset=UTF-8 
wbxml=1 [on line 226 of "/kunden/96687_53125/pear/lib/php/SyncML.php"]
Jun 26 15:50:58 HORDE [debug] [horde] SyncML: looking for sync for 
contacts [on line 263 of 
"/kunden/96687_53125/pear/lib/php/SyncML/Command/Alert.php"]
Jun 26 15:50:58 HORDE [debug] [horde] SyncML: Create new sync for 
contacts [on line 269 of 
"/kunden/96687_53125/pear/lib/php/SyncML/Command/Alert.php"]
Jun 26 15:50:58 HORDE [debug] [horde] SyncML: create for 
syncType=contacts [on line 51 of 
"/kunden/96687_53125/pear/lib/php/SyncML/Sync.php"]
Jun 26 15:50:58 HORDE [debug] [horde] SyncML: SyncML: No info about 
previous syncs found for id mwe:IMEI_352255019274111 and database 
contacts [on line 96 of 
"/kunden/96687_53125/pear/lib/php/SyncML/Command/Alert.php"]
Jun 26 15:50:58 HORDE [debug] [horde] SyncML: SyncML: Anchor mismatch, 
enforcing SlowSync [on line 119 of 
"/kunden/96687_53125/pear/lib/php/SyncML/Command/Alert.php"]
Jun 26 15:50:58 HORDE [error] [horde] Invalid offset 0 value encountered 
around position 5. Broken wbxml? [on line 268 of 
"/kunden/96687_53125/pear/lib/php/Horde/RPC/syncml.php"]
Jun 26 15:50:58 HORDE [error] [horde] SyncML: No DTD found for /0 [on 
line 62 of "/kunden/96687_53125/pear/lib/php/Horde/RPC/syncml_wbxml.php"]


The Client Request File looks like:
<?xml version="1.0"?>
<!DOCTYPE SyncML PUBLIC "-//SYNCML//DTD SyncML 1.1//EN" 
"http://www.syncml.org/docs/syncml_represent_v11_20020213.dtd">
<SyncML xmlns="syncml:SYNCML1.1">
    <SyncHdr>
        <VerDTD>1.1</VerDTD>
        <VerProto>SyncML/1.1</VerProto>
        <SessionID>5</SessionID>
        <MsgID>1</MsgID>
        <Target>
            <LocURI>http://intern.olserv.net/horde/rpc.php</LocURI>
        </Target>
        <Source>
            <LocURI>IMEI:352255019274111</LocURI>
        </Source>
        <Cred>
            <Meta>
                <Type xmlns="syncml:metinf">syncml:auth-basic</Type>
            </Meta>
            <Data>bXdlOnNPbDFkMVVt</Data>
        </Cred>
        <Meta>
            <MaxMsgSize xmlns="syncml:metinf">10000</MaxMsgSize>
        </Meta>
    </SyncHdr>
    <SyncBody>
        <Alert>

[SNIP]

</Data>
            </Item>
        </Put>
        <Get>
            <CmdID>3</CmdID>
            <Meta>
                <Type 
xmlns="syncml:metinf">application/vnd.syncml-devinf+xml</Type>
            </Meta>
            <Item>
                <Target>
                    <LocURI>./devinf11</LocURI>
                </Target>
            </Item>
        </Get>
        <Final/>
    </SyncBody>
</SyncML>

The wbxml2xml for syncml_server_0.wbxml show following error:
wbxml2xml failed: Unexpected End Of WBXML Buffer

Hope you can help me.

Best regards from Germany

Michael Weber


More information about the sync mailing list