[sync] SyncML with Nokia 6230 - logs
Christian Cier-Zniewski
c.cier at gmx.de
Tue Jul 13 10:56:41 PDT 2004
Hi,
Karsten Fourmont wrote:
> The header you've been sending had
> <MsgID>2</MsgID>
> So this is not the first package. Can you check wether your phone sends
> the cred details in the first packet, too?
The does _not_ send the cred details in the first packet. It only sends
the cred details if the server wants auth-basic.
So it seems to be some kind of "guest" login which it tries first.
> There's a small chance the syncml.php logging to /tmp/sync overwrites existing
> files. This can happen when the phone starts responding while the server is
> still completing its respond for the previous package. So if your _client_0
> package has <MsgID>2</MsgID>, just let me know and I'll try to find the fix I
> did to syncml.php for this.
Nope, this is okay, as far as I can tell.
I had only attached the second packet in one of my previous mails, sorry.
I have hardcoded my cred details in state.php and now the phone does not
send any cred details at all, which is clear. The server does not
challenge the phone to do authentication using cred details.
The transfer starts and after that the phone crashes.
In the horde log I see the following entries a few times:
/tmp/horde.log
------------------------------------------------------------------------------------------
Jul 13 19:51:29 HORDE [warning] [horde] SyncML: unable to create delete
for kronolith:6e0128d3117c5fcc9d8b8f5b723df716: locid not found in map
[on line 102 o
f "/usr/share/php/Horde/SyncML/Sync/TwoWaySync.php"]
Jul 13 19:51:29 HORDE [warning] [horde] SyncML: unable to create change
for 1: locid not found in map [on line 67 of
"/usr/share/php/Horde/SyncML/Sync/TwoWay
Sync.php"]
Jul 13 19:51:29 HORDE [warning] [horde] SyncML: unable to create change
for 1024: locid not found in map [on line 67 of
"/usr/share/php/Horde/SyncML/Sync/Two
WaySync.php"]
Jul 13 19:51:29 HORDE [warning] [horde] SyncML: unable to create change
for : locid not found in map [on line 67 of
"/usr/share/php/Horde/SyncML/Sync/TwoWayS
ync.php"]
Jul 13 19:51:29 HORDE [warning] [horde] SyncML: unable to create change
for Die Methode listBy ist in der API für nag nicht definiert.: locid
not found in m
ap [on line 67 of "/usr/share/php/Horde/SyncML/Sync/TwoWaySync.php"]
------------------------------------------------------------------------------------------------
syncml_client_0.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>
4
</SessionID>
<MsgID>
1
</MsgID>
<Target>
<LocURI>
http://xx.xx.xx.xx:8080/horde/rpc.php
</LocURI>
</Target>
<Source>
<LocURI>
IMEI:35376700xxxxxxx
</LocURI>
</Source>
<Meta>
<MaxMsgSize xmlns="syncml:metinf">
3584
</MaxMsgSize>
</Meta>
</SyncHdr>
<SyncBody>
<Alert>
<CmdID>
1
</CmdID>
<Data>
201
</Data>
<Item>
<Target>
<LocURI>
calendar
</LocURI>
</Target>
<Source>
<LocURI>
/telecom/cal.vcs
</LocURI>
</Source>
<Meta>
<Anchor xmlns="syncml:metinf">
<Last>
0
</Last>
<Next>
0
</Next>
</Anchor>
</Meta>
</Item>
</Alert>
<Put>
<CmdID>
2
</CmdID>
<Item>
<Source>
<LocURI>
./devinf11
</LocURI>
</Source>
<Meta>
<Type xmlns="syncml:metinf">
application/vnd.syncml-devinf+xml
</Type>
</Meta>
<Data>
<DevInf xmlns="syncml:devinf">
<VerDTD>
1.1
</VerDTD>
<Man>
Nokia Corporation
</Man>
<Mod>
Nokia 6230
</Mod>
<FwV>
V 03.15
</FwV>
<SwV>
V 03.15
</SwV>
<HwV>
0603
</HwV>
<DevID>
IMEI:35376700xxxxxxx
</DevID>
<DevTyp>
phone
</DevTyp>
<DataStore>
<SourceRef>
/telecom/pb.vcf
</SourceRef>
<MaxGUIDSize>
8
</MaxGUIDSize>
<Rx-Pref>
<CTType>
text/x-vcard
</CTType>
<VerCT>
2.1
</VerCT>
</Rx-Pref>
<Tx-Pref>
<CTType>
text/x-vcard
</CTType>
<VerCT>
2.1
</VerCT>
</Tx-Pref>
<SyncCap>
<SyncType>
1
</SyncType>
<SyncType>
2
</SyncType>
<SyncType>
7
</SyncType>
</SyncCap>
</DataStore>
<DataStore>
<SourceRef>
/telecom/cal.vcs
</SourceRef>
<MaxGUIDSize>
8
</MaxGUIDSize>
<Rx-Pref>
<CTType>
text/x-vcalendar
</CTType>
<VerCT>
1.0
</VerCT>
</Rx-Pref>
<Tx-Pref>
<CTType>
text/x-vcalendar
</CTType>
<VerCT>
1.0
</VerCT>
</Tx-Pref>
<SyncCap>
<SyncType>
1
</SyncType>
<SyncType>
2
</SyncType>
<SyncType>
7
</SyncType>
</SyncCap>
</DataStore>
<DataStore>
<SourceRef>
/telecom/note.txt
</SourceRef>
<MaxGUIDSize>
8
</MaxGUIDSize>
<Rx-Pref>
<CTType>
text/plain
</CTType>
<VerCT>
</VerCT>
</Rx-Pref>
<Tx-Pref>
<CTType>
text/plain
</CTType>
<VerCT>
</VerCT>
</Tx-Pref>
<SyncCap>
<SyncType>
1
</SyncType>
<SyncType>
2
</SyncType>
<SyncType>
7
</SyncType>
</SyncCap>
</DataStore>
<CTCap>
<CTType>
text/x-vcard
</CTType>
<PropName>
BEGIN
</PropName>
<ValEnum>
VCARD
</ValEnum>
<PropName>
VERSION
</PropName>
<ValEnum>
2.1
</ValEnum>
<PropName>
END
</PropName>
<ValEnum>
VCARD
</ValEnum>
<PropName>
N
</PropName>
<PropName>
TEL
</PropName>
<ParamName>
PREF
</ParamName>
<ParamName>
WORK
</ParamName>
<ParamName>
HOME
</ParamName>
<ParamName>
VOICE
</ParamName>
<ParamName>
FAX
</ParamName>
<ParamName>
CELL
</ParamName>
<PropName>
NOTE
</PropName>
<PropName>
URL
</PropName>
<PropName>
EMAIL
</PropName>
<PropName>
LABEL
</PropName>
</CTCap>
<CTCap>
<CTType>
text/x-vcalendar
</CTType>
<PropName>
BEGIN
</PropName>
<ValEnum>
VCALENDAR
</ValEnum>
<ValEnum>
VEVENT
</ValEnum>
<ValEnum>
VTODO
</ValEnum>
<PropName>
VERSION
</PropName>
<ValEnum>
1.0
</ValEnum>
<PropName>
END
</PropName>
<ValEnum>
VCALENDAR
</ValEnum>
<ValEnum>
VEVENT
</ValEnum>
<ValEnum>
VTODO
</ValEnum>
<PropName>
DTSTART
</PropName>
<DataType>
datetime
</DataType>
<PropName>
DTEND
</PropName>
<DataType>
datetime
</DataType>
<PropName>
SUMMARY
</PropName>
<PropName>
DUE
</PropName>
<PropName>
AALARM
</PropName>
<DataType>
datetime
</DataType>
<PropName>
DALARM
</PropName>
<DataType>
datetime
</DataType>
<PropName>
RRULE
</PropName>
<PropName>
CATEGORIES
</PropName>
<PropName>
LOCATION
</PropName>
<PropName>
STATUS
</PropName>
<PropName>
PRIORITY
</PropName>
</CTCap>
<CTCap>
<CTType>
text/plain
</CTType>
<PropName>
</PropName>
<DataType>
chr
</DataType>
<Size>
3000
</Size>
</CTCap>
</DevInf>
</Data>
</Item>
</Put>
<Final>
</Final>
</SyncBody>
</SyncML>
---------------------------------------------------------------------------------------------------------------
syncml_server_0.xml
---------------------------------------------------------------------------------------------------------------
<SyncML xmlns="syncml:SYNCML1.1"><SyncHdr
xmlns="syncml:syncml1.1"><VerDTD>1.1</VerDTD><VerProto>SyncML/1.1</VerProto><SessionID>4</SessionID><MsgID>1</MsgID
><Target><LocURI>IMEI:35376700xxxxxxx</LocURI></Target><Source><LocURI>http://xx.xx.xx.xx:8080/horde/rpc.php</LocURI></Source><RespURI>http://xx.xx.xx.
xx:8080/horde/rpc.php</RespURI></SyncHdr><SyncBody><Status
xmlns="syncml:syncml1.1"><CmdID>1</CmdID><MsgRef>1</MsgRef><CmdRef>0</CmdRef><Cmd>SyncHdr</Cmd><So
urceRef>IMEI:35376700xxxxxxx</SourceRef><TargetRef>http://xx.xx.xx.xx:8080/horde/rpc.php</TargetRef><Data>212</Data></Status><Status
xmlns="syncml:syncml1
.1"><CmdID>2</CmdID><MsgRef>1</MsgRef><CmdRef>1</CmdRef><Cmd>Alert</Cmd><SourceRef>/telecom/cal.vcs</SourceRef><TargetRef>calendar</TargetRef><Data>508</Data
><Item><Data><Anchor><Next>0</Next><Last>0</Last></Anchor></Data></Item></Status><Alert
xmlns="syncml:syncml1.1"><CmdID>3</CmdID><Data>201</Data><Item><Targe
t><LocURI>/telecom/cal.vcs</LocURI></Target><Source><LocURI>calendar</LocURI></Source><Meta><Anchor
xmlns="syncml:metinf1.1"><Last>0</Last><Next>1089739843</
Next></Anchor></Meta></Item></Alert><Status
xmlns="syncml:syncml1.1"><CmdID>4</CmdID><MsgRef>1</MsgRef><CmdRef>2</CmdRef><Cmd>Put</Cmd><SourceRef>./devinf11<
/SourceRef><Data>200</Data></Status><Final
xmlns="syncml:syncml1.1"></Final></SyncBody></SyncML>
---------------------------------------------------------------------------------------------------------------
syncml_client_1.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>
4
</SessionID>
<MsgID>
2
</MsgID>
<Target>
<LocURI>
http://xx.xx.xx.xx:8080/horde/rpc.php
</LocURI>
</Target>
<Source>
<LocURI>
IMEI:3537670xxxxxxxx
</LocURI>
</Source>
</SyncHdr>
<SyncBody>
<Status>
<CmdID>
1
</CmdID>
<MsgRef>
1
</MsgRef>
<CmdRef>
0
</CmdRef>
<Cmd>
SyncHdr
</Cmd>
<TargetRef>
IMEI:3537670xxxxxxxx
</TargetRef>
<SourceRef>
http://xx.xx.xx.xx:8080/horde/rpc.php
</SourceRef>
<Data>
200
</Data>
</Status>
<Status>
<CmdID>
2
</CmdID>
<MsgRef>
1
</MsgRef>
<CmdRef>
3
</CmdRef>
<Cmd>
Alert
</Cmd>
<TargetRef>
/telecom/cal.vcs
</TargetRef>
<SourceRef>
calendar
</SourceRef>
<Data>
200
</Data>
<Item>
<Data>
<Anchor xmlns="syncml:metinf">
<Next>
1089739843
</Next>
</Anchor>
</Data>
</Item>
</Status>
<Sync>
<CmdID>
3
</CmdID>
<Target>
<LocURI>
calendar
</LocURI>
</Target>
<Source>
<LocURI>
/telecom/cal.vcs
</LocURI>
</Source>
<Meta>
<Mem xmlns="syncml:metinf">
<FreeMem>
93000
</FreeMem>
<FreeID>
930
</FreeID>
</Mem>
</Meta>
</Sync>
<Final>
</Final>
</SyncBody>
</SyncML>
----------------------------------------------------------------------------------------------------------------------
syncml_server_1.xml
---------------------------------------------------------------------------------------------------------------------
<SyncML xmlns="syncml:SYNCML1.1"><SyncHdr
xmlns="syncml:syncml1.1"><VerDTD>1.1</VerDTD><VerProto>SyncML/1.1</VerProto><SessionID>4</SessionID><MsgID>2</MsgID
><Target><LocURI>IMEI:3537670xxxxxxxx</LocURI></Target><Source><LocURI>http://xx.xx.xx.xx:8080/horde/rpc.php</LocURI></Source><RespURI>http://xx.xx.xx.xx:8080/horde/rpc.php</RespURI></SyncHdr><SyncBody><Status
xmlns="syncml:syncml1.1"><CmdID>1</CmdID><MsgRef>2</MsgRef><CmdRef>0</CmdRef><Cmd>SyncHdr</Cmd><So
urceRef>IMEI:3537670xxxxxxxx</SourceRef><TargetRef>http://xx.xx.xx.xx:8080/horde/rpc.php</TargetRef><Data>212</Data></Status><Sync
xmlns="syncml:syncml1.1
"><CmdID>2</CmdID><Target><LocURI></LocURI></Target><Source><LocURI>calendar</LocURI></Source><Add><CmdID>3</CmdID><Meta><Type
xmlns="syncml:metinf1.1">text/
x-vcalendar</Type></Meta><Item><Source><LocURI>kronolith:4177a5d8ea5798fb90d2bc63d687bfe9</LocURI></Source><Data>BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Horde.org//Kronolith Generated
METHOD:REQUEST
BEGIN:VEVENT
DTSTAMP:20040713T193046
SUMMARY:testtermin
DTSTART:20040714T100000Z
DTEND:20040714T110000Z
LOCATION:sfsdfsdfsdf
TRANSP:OPAQUE
ORGANIZER;CN=Christian Cier-Zniewski:MAILTO:c.cier at gmx.de
END:VEVENT
END:VCALENDAR
</Data></Item></Add></Sync><Status
xmlns="syncml:syncml1.1"><CmdID></CmdID><MsgRef>2</MsgRef><CmdRef>3</CmdRef><Cmd>Sync</Cmd><TargetRef>calendar</TargetRef>
<Data>200</Data></Status><Final
xmlns="syncml:syncml1.1"></Final></SyncBody></SyncML>
More information about the sync
mailing list