[GroupDAV] Funambol GroupDAV connector: OGo ATTENDEE fields get stripped away

Samuli Seppänen groupdav@opengroupware.org
Mon, 25 Feb 2008 13:54:21 +0200


>>>> I noticed that ical4j dies if Zidestore serves an email address 
>>>> containing scandinavian characters. Of course Zidestore shouldn't do 
>>>> that, but it does.
>>> Could you elaborate?
>>
>> Of course. I had a OGo user which had email "äksy@tietoteema.fi" as a
>> participant in an event. The corresponding ATTENDEE line probably 
>> looked like this:
>>
>> ATTENDEE;CUTYPE=INDIVIDUAL;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;RSVP=FAL 
>>
>> SE;CN=Testi Henkilö:MAILTO:testi.henkilö@tietoteema.fi
> 
> OK, just had a look on how iCal.app encodes it:
> ---snip---
> ATTENDEE;CN="John Ümläut";CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT:mailto:
>  testi.henkil%C3%B6@tietoteema.fi
> ---snap---
> Looks like we need to encode the email address but keep the CN.

Shouldn't email addresses be plain ASCII only? If so, there's no need to 
fix this...

>> In addition the scandinavian character in the email and CN seemed to 
>> be encoded in ISO-8859-1, not UTF-8.
> 
> That would be wrong in any case (though I'm a bit surprised).

Our OGo database has a long history behind it, so I'm not surprised at 
all :). Our users authenticate from LDAP and it's quite possible that 
the invalid email address came from there.

>> Whether the reason was the "ä" in the email address or the ISO-8859-1 
>> encoding, ical4j died with an exception during OGo<->Nokia sync.
> Which is still strange. It shouldn't crash but 'just' show b0rked 
> characters?

The exception was probably caused by VCALENDAR property -> ical4j 
property converter, but I can't remember exactly where.

Samuli