Hi Patrick,
On Oct 15, 2009, at 10:30 , Patrick Ohly wrote:
On Wed, 2009-10-14 at 13:37 +0100, Lukas Zeller wrote:
I haven't come across phones that crash on b64 folding spaces as
mobical apparently did. Can we find out more about which ones this
applies to? I know of phones that crash on any folding (Moto V3 and
Razr), but for these we have <nocontentfolding>.
Folding seems to be more trouble than it's worth, so SyncEvolution
always disables it.
Ok, interesting to know - our products have it on by default, only in
the server we turn it off on a per device basis for a few known bad
phones.
On the parsing side, the the patch I added today (see previous email)
will work with or without that empty line.
I've enabled the PHOTO property comparison in the automated testing
for
Mobical. It was turned off because when interoperability was tested,
the
server seemed to modify our test photos, but send them back without
triggering this problem (according to our README.mobical). I haven't
done that testing myself, so I assume that something has changed since
then.
Without your patch, the testing finds that the PHOTO is truncated.
With
the patch, it gets a bit too long ;-}
qGIlf17k6Bb/Ae0cnahfg6KuAAAAAElFTkSuQ qGIlf17k6Bb/
Ae0cnahfg6KuAAAAAElFTkSuQ
mCC | mCCENDVCARD
URL:http://john.doe.com URL:http://john.doe.com
I see. It seems that the server does not detect the end of the B64 and
includes the END:VCARD (but ignores the colon as per rfc1521). It
obviously relies on the empty line that is in fact missing in what we
send.
This is something which happens on the way to the server. What we send
is:
NOTE:image in PNG format
PHOTO;ENCODING=BASE64:iVBORw...uQmCC
END:VCARD
Note that folding is turned off, so it is really one long line. I
shortened it by replacing the middle with dots. Shouldn't there be a
blank line after the PHOTO property, to comply with the BASE64
encoding
rules?
Yes, and I think you are right that this is missing when folding is
turned off. I'll have a look.
Lukas Zeller ([email protected])
-
Synthesis AG, SyncML Solutions & Sustainable Software Concepts
[email protected], http://www.synthesis.ch
_______________________________________________
os-libsynthesis mailing list
[email protected]
http://lists.synthesis.ch/mailman/listinfo/os-libsynthesis