[sync] Syncing with the P1i

Martin Zoller mailinglists at zollerit.ch
Sun Oct 11 22:14:01 UTC 2009


Jan Schneider wrote:
> Zitat von Jan Schneider <jan at horde.org>:
>
>> Zitat von Martin Zoller <mailinglists at zollerit.ch>:
>>
>>> Hello
>>>
>>> I think you're right about the linebreak, Jan. But that would mean that
>>> *Horde* doesn't count it, because the higher number (153 bytes) comes
>>> from the *phone*. That's because the data already gets trimmed: In
>>> Command/Sync.php on line 225.
>>
>> Gotcha! I got the numbers wrong, so this seems to be a bug in Horde.
>>
>>> Now that we have this explanation for the size mismatch, it wouldn't be
>>> too elegant to just accept "wrong" size specifications as in Arvid's
>>> patch. Maybe we should store the 'trimmed' and the 'untrimmed' 
>>> length of
>>> the data and accept both of them? Because removing the trim() commands
>>> might break other clients.
>>
>> Well, if it does, then *those* clients are broken, and we have to 
>> find a workaround for it. I guess it works for most clients, because 
>> they don't include a trailing CRLF.
>
> Try this:
> http://cvs.horde.org/diff.php/framework/SyncML/SyncML/Command/Sync.php?rt=horde&r1=1.17.10.18&r2=1.17.10.19&ty=u 
>
>
> Jan.
>
Hi again
I've applied your patch and the length is recognized correctly now. (Not
a single warning/error in the log.)


Best regards,
Martin



More information about the sync mailing list