[sync] E62 wbxml

Simon McCartney simon at mccartney.ie
Wed Oct 11 09:18:40 PDT 2006


Karsten Fourmont wrote:
> Hi,
>
> strange. Current syncml and wbxml packages should do the trick.
>
I think I'm still seeing the same issues on my SE phones (T630, K750i & 
V600i)
I've been poking around the code (and remembering why I dislike php so 
much, I find it terrible to follow)

It looks like the first packet (containing the username & password) 
isn't being parsed correctly, this is from some logging I added:

Oct 11 16:38:49 HORDE [debug] [horde] SyncML: About to call handleHeader 
[on line 139 of 
"/var/www/mccartney.ie/syncml/horde/framework/SyncML/SyncML.php"]^M
Oct 11 16:38:49 HORDE [debug] [horde] SyncML: New session created: 
syncml35593200303820026 [on line 45 of 
"/var/www/mccartney.ie/syncml/pear/SyncML/Command/SyncHdr.php"]^M
Oct 11 16:38:49 HORDE [debug] [horde] SyncML: Not authorized, about to 
getLogName and checkAuth [on line 266 of 
"/var/www/mccartney.ie/syncml/horde/framework/SyncML/SyncML.php"]^M
Oct 11 16:38:49 HORDE [debug] [horde] SyncML: In checkAuthorization [on 
line 397 of 
"/var/www/mccartney.ie/syncml/horde/framework/SyncML/SyncML/Backend.php"]^M
Oct 11 16:38:49 HORDE [debug] [horde] SyncML: username= credData= [on 
line 400 of 
"/var/www/mccartney.ie/syncml/horde/framework/SyncML/SyncML/Backend.php"]^M
Oct 11 16:38:49 HORDE [debug] [horde] SyncML: credFormat= credType= [on 
line 402 of 
"/var/www/mccartney.ie/syncml/horde/framework/SyncML/SyncML/Backend.php"]^M
Oct 11 16:38:49 HORDE [debug] [horde] SyncML: credDate and credType are 
empty, returning false. [on line 406 of 
"/var/www/mccartney.ie/syncml/horde/framework/SyncML/SyncML/Backend.php"]^M
Oct 11 16:38:49 HORDE [debug] [horde] SyncML: Invalid authorization! [on 
line 283 of 
"/var/www/mccartney.ie/syncml/horde/framework/SyncML/SyncML.php"]^M


Incidently, as I sanity check I ran Sync4j/Funambol from Outlook, it 
connects ok, chokes else where on a stripos in Device/Sync4j.php:

<b>Fatal error</b>:  Call to undefined function:  stripos() in 
<b>/var/www/mccartney.ie/syncml/pear/SyncML/Device/Sync4j.php</b> on 
line <b>30</b><br />

Which I fixed like this:

mccartney:Device# cvs diff Sync4j.php
Index: Sync4j.php
===================================================================
RCS file: /repository/framework/SyncML/SyncML/Device/Sync4j.php,v
retrieving revision 1.16
diff -r1.16 Sync4j.php
27d26
<
30,31c29,30
<         if (stripos($serverSyncURI, 'notes') !== false
<             || stripos($serverSyncURI, 'memo') !== false) {
---
 >         if ( strpos(strtolower($serverSyncURI),strtolower('notes')) 
!== false
 >             || strpos(strtolower($serverSyncURI),strtolower('memo')) 
!== false) {


-- 
Simon McCartney
E: simon at mccartney.ie
M: +44 7710 836 915
W: http://www.mccartney.ie/blog



More information about the sync mailing list