[sync] SyncML Synthesis client broken
Twilek@gmx.de
Twilek at gmx.de
Wed Jan 10 12:30:27 PST 2007
I am sorry, I wasn´t aware that the maillist cuts attachments, so here they are in plain text:
data.txt
input received from client (text/x-vcard)
BEGIN:VCARD
VERSION:2.1
N:Arbuckle;John;;;
FN:Arbuckle, John
TITLE:
ORG:;
BDAY:
TEL;HOME;VOICE;X-Synthesis-Ref1:+49000
TEL;CELL;VOICE;X-Synthesis-Ref1:+49000
EMAIL:
URL:
NOTE:
ADR;HOME:;;;;;;
END:VCARD
input converted for server: text/x-vcard
BEGIN:VCARD
VERSION:2.1
N:Arbuckle;John;;;
FN:Arbuckle, John
TITLE:
ORG:;
BDAY:
TEL;HOME;VOICE;X-Synthesis-Ref1:+49000
TEL;CELL;VOICE;X-Synthesis-Ref1:+49000
EMAIL:
URL:
NOTE:
ADR;HOME:;;;;;;
END:VCARD
input converted for server: text/x-vcard
BEGIN:VCARD
VERSION:2.1
N:Arbuckle;John;;;
FN:Arbuckle, John
TITLE:
ORG:;
BDAY:
TEL;HOME;VOICE;X-Synthesis-Ref1:+49000
TEL;CELL;VOICE;X-Synthesis-Ref1:+49000
EMAIL:
URL:
NOTE:
ADR;HOME:;;;;;;
END:VCARD
devinf.txt
SyncML_DeviceInfo::__set_state(array(
'_VerDTD' => '1.1',
'_Man' => 'Synthesis AG',
'_Mod' => 'SySync Client PocketPC STD',
'_OEM' => 'Synthesis AG',
'_FwV' => '4.21.1088',
'_SwV' => '3.0.0.0',
'_HwV' => 'FUJITSU SIEMENS COMPUTERS Pocket LOOX 720',
'_DevID' => '1703A7016742BB711800',
'_DevTyp' => 'pda',
'_DataStore' =>
array (
0 =>
SyncML_DataStore::__set_state(array(
'_SourceRef' => './contacts',
'_DisplayName' => NULL,
'_MaxGUIDSize' => '64',
'_Rx_Pref' =>
array (
'text/x-vcard' => '2.1',
),
'_Rx' =>
array (
'text/vcard' => '3.0',
),
'_Tx_Pref' =>
array (
'text/x-vcard' => '2.1',
),
'_Tx' =>
array (
'text/vcard' => '3.0',
),
'_DSMem' => NULL,
'_SyncCap' =>
array (
1 => true,
2 => true,
3 => true,
4 => true,
5 => true,
6 => true,
),
)),
),
'_CTCap' =>
array (
'text/x-vcard' =>
array (
'BEGIN' =>
SyncML_Property::__set_state(array(
'_ValEnum' =>
array (
'VCARD' => true,
),
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' => NULL,
)),
'END' =>
SyncML_Property::__set_state(array(
'_ValEnum' =>
array (
'VCARD' => true,
),
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' => NULL,
)),
'VERSION' =>
SyncML_Property::__set_state(array(
'_ValEnum' =>
array (
'2.1' => true,
),
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' => NULL,
)),
'N' =>
SyncML_Property::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' => NULL,
)),
'FN' =>
SyncML_Property::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' => NULL,
)),
'TITLE' =>
SyncML_Property::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' => NULL,
)),
'ORG' =>
SyncML_Property::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' => NULL,
)),
'BDAY' =>
SyncML_Property::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' => NULL,
)),
'TEL' =>
SyncML_Property::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' =>
array (
'HOME' =>
SyncML_PropertyParameter::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
)),
'WORK' =>
SyncML_PropertyParameter::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
)),
'CELL' =>
SyncML_PropertyParameter::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
)),
'FAX' =>
SyncML_PropertyParameter::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
)),
'PAGER' =>
SyncML_PropertyParameter::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
)),
'CAR' =>
SyncML_PropertyParameter::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
)),
'MODEM' =>
SyncML_PropertyParameter::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
)),
'VOICE' =>
SyncML_PropertyParameter::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
)),
'X-Synthesis-Ref1' =>
SyncML_PropertyParameter::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
)),
'X-Synthesis-Ref2' =>
SyncML_PropertyParameter::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
)),
'X-Synthesis-Ref3' =>
SyncML_PropertyParameter::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
)),
),
)),
'EMAIL' =>
SyncML_Property::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' => NULL,
)),
'URL' =>
SyncML_Property::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' => NULL,
)),
'CATEGORIES' =>
SyncML_Property::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' => NULL,
)),
'NOTE' =>
SyncML_Property::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' => NULL,
)),
'ADR' =>
SyncML_Property::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' =>
array (
'HOME' =>
SyncML_PropertyParameter::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
)),
'WORK' =>
SyncML_PropertyParameter::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
)),
),
)),
),
'text/vcard' =>
array (
'BEGIN' =>
SyncML_Property::__set_state(array(
'_ValEnum' =>
array (
'VCARD' => true,
),
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' => NULL,
)),
'END' =>
SyncML_Property::__set_state(array(
'_ValEnum' =>
array (
'VCARD' => true,
),
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' => NULL,
)),
'VERSION' =>
SyncML_Property::__set_state(array(
'_ValEnum' =>
array (
'3.0' => true,
),
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' => NULL,
)),
'N' =>
SyncML_Property::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' => NULL,
)),
'FN' =>
SyncML_Property::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' => NULL,
)),
'TITLE' =>
SyncML_Property::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' => NULL,
)),
'ORG' =>
SyncML_Property::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' => NULL,
)),
'BDAY' =>
SyncML_Property::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' => NULL,
)),
'TEL' =>
SyncML_Property::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' =>
array (
'TYPE' =>
SyncML_PropertyParameter::__set_state(array(
'_ValEnum' =>
array (
'HOME' => true,
'WORK' => true,
'CELL' => true,
'FAX' => true,
'PAGER' => true,
'CAR' => true,
'MODEM' => true,
'VOICE' => true,
'X-Synthesis-Ref1' => true,
'X-Synthesis-Ref2' => true,
'X-Synthesis-Ref3' => true,
),
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
)),
),
)),
'EMAIL' =>
SyncML_Property::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' => NULL,
)),
'URL' =>
SyncML_Property::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' => NULL,
)),
'CATEGORIES' =>
SyncML_Property::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' => NULL,
)),
'NOTE' =>
SyncML_Property::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' => NULL,
)),
'ADR' =>
SyncML_Property::__set_state(array(
'_ValEnum' => NULL,
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
'_params' =>
array (
'TYPE' =>
SyncML_PropertyParameter::__set_state(array(
'_ValEnum' =>
array (
'HOME' => true,
'WORK' => true,
),
'_DataType' => NULL,
'_Size' => NULL,
'_DisplayName' => NULL,
)),
),
)),
),
),
'_Ext' => NULL,
'_UTC' => true,
'_supportLargeObjs' => true,
'_supportNumberOfChanges' => true,
syncml_log.txt
DEBUG: New session created: syncml1703A7016742BB711800139
DEBUG: checking auth for user=twilek
DEBUG: authorized=1 version=1 msgid=1 source=1703A7016742BB711800 target=http://xxx/horde/rpc.php user=twilek charset=ISO-8859-1 wbxml=1
DEBUG: SyncML: No info about previous syncs found for id twilek:1703A7016742BB711800 and database contacts
DEBUG: Create new sync for contacts; synctype=203
DEBUG: Received Final from client.
DEBUG: Sending Final to client.
DEBUG: SyncML: return message completed
DEBUG: Finished at 2007-01-10 20:53:50. Packet logged in /tmp/sync/syncml_server_10.(wb)xml
I have converted the wgxml to xml
syncml_client_10.xml
<?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>139</SessionID>
<MsgID>1</MsgID>
<Target>
<LocURI>http://xxx/horde/rpc.php</LocURI>
</Target>
<Source>
<LocURI>1703A7016742BB711800</LocURI>
<LocName>twilek</LocName>
</Source>
<Cred>
<Meta>
<Format xmlns="syncml:metinf">b64</Format>
<Type xmlns="syncml:metinf">syncml:auth-basic</Type>
</Meta>
<Data>dHdpbGVrOmJhYnlsb241</Data>
</Cred>
<Meta>
<MaxMsgSize xmlns="syncml:metinf">20000</MaxMsgSize>
<MaxObjSize xmlns="syncml:metinf">4000000</MaxObjSize>
</Meta>
</SyncHdr>
<SyncBody>
<Get>
<CmdID>1</CmdID>
<Meta>
<Type xmlns="syncml:metinf">application/vnd.syncml-devinf+xml</Type>
</Meta>
<Item>
<Target>
<LocURI>./devinf11</LocURI>
</Target>
</Item>
</Get>
<Alert>
<CmdID>2</CmdID>
<Data>202</Data>
<Item>
<Target>
<LocURI>contacts</LocURI>
</Target>
<Source>
<LocURI>./contacts</LocURI>
</Source>
<Meta>
<Anchor xmlns="syncml:metinf">
<Last>20061223T175446Z</Last>
<Next>20070110T195351Z</Next>
</Anchor>
<MaxObjSize xmlns="syncml:metinf">4000000</MaxObjSize>
</Meta>
</Item>
</Alert>
<Final/>
</SyncBody>
</SyncML>
syncml_server_10.xml
<?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>139</SessionID>
<MsgID>1</MsgID>
<Target>
<LocURI>http://xxx/horde/rpc.php</LocURI>
</Target>
<Source>
<LocURI>1703A7016742BB711800</LocURI>
<LocName>twilek</LocName>
</Source>
<Cred>
<Meta>
<Format xmlns="syncml:metinf">b64</Format>
<Type xmlns="syncml:metinf">syncml:auth-basic</Type>
</Meta>
<Data>dHdpbGVrOmJhYnlsb241</Data>
</Cred>
<Meta>
<MaxMsgSize xmlns="syncml:metinf">20000</MaxMsgSize>
<MaxObjSize xmlns="syncml:metinf">4000000</MaxObjSize>
</Meta>
</SyncHdr>
<SyncBody>
<Get>
<CmdID>1</CmdID>
<Meta>
<Type xmlns="syncml:metinf">application/vnd.syncml-devinf+xml</Type>
</Meta>
<Item>
<Target>
<LocURI>./devinf11</LocURI>
</Target>
</Item>
</Get>
<Alert>
<CmdID>2</CmdID>
<Data>202</Data>
<Item>
<Target>
<LocURI>contacts</LocURI>
</Target>
<Source>
<LocURI>./contacts</LocURI>
</Source>
<Meta>
<Anchor xmlns="syncml:metinf">
<Last>20061223T175446Z</Last>
<Next>20070110T195351Z</Next>
</Anchor>
<MaxObjSize xmlns="syncml:metinf">4000000</MaxObjSize>
</Meta>
</Item>
</Alert>
<Final/>
</SyncBody>
</SyncML>
and there is a syncml_client_11.xml
with all my contacts in but those are somehow ignored...
More information about the sync
mailing list