aluxnimm / outlookcaldavsynchronizer

Sync Outlook with Google, SOGo, Nextcloud or any other CalDAV/CardDAV server
GNU Affero General Public License v3.0
920 stars 97 forks source link

ical parsing error #22

Closed aluxnimm closed 9 years ago

aluxnimm commented 9 years ago

TREFFPUNKT inside description leads to parse error, e.g:

ERROR 2015-03-17 14:57:02,286 [VSTA_Main] EntityRepositories.CalDavEventRepository . TryDeserializeICalEvent - Could not deserilaize ICalData: BEGIN:VCALENDAR VERSION:2.0 BEGIN:VTIMEZONE TZID:Europe/Vienna X-LIC-LOCATION:Europe/Vienna BEGIN:DAYLIGHT TZOFFSETFROM:+0100 TZOFFSETTO:+0200 TZNAME:CEST DTSTART:19700329T020000 RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU END:DAYLIGHT BEGIN:STANDARD TZOFFSETFROM:+0200 TZOFFSETTO:+0100 TZNAME:CET DTSTART:19701025T030000 RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU END:STANDARD END:VTIMEZONE BEGIN:VEVENT CREATED:20121010T073345Z LAST-MODIFIED:20150317T135635Z DTSTAMP:20121010T114906Z UID:afdd96d0-40de-48bc-ba8a-4beb8d2ec9b6 SUMMARY:Demo-Festplattenabgabe DTSTART;TZID=Europe/Vienna:20121017T180000 DTEND;TZID=Europe/Vienna:20121017T200000 LOCATION:Wien DESCRIPTION:Deshalb ruft die Initiative für Netzfreiheit zu einer Demonstra tion für die Reform des Urheberrechts und gegen die Festplattenabgabe auf. Am 17. Oktober um 18:00 verläuft die Demonstration vom Sitz der AustroMec hana zum Justizministerium. TREFFPUNKT 17:50 TRANSP:OPAQUE CLASS:PUBLIC X-MOZ-GENERATION:1 ATTENDEE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;RSVP=TRUE;CN=Manfred Ki ndl:mailto:kindlm@technikum-wien.at ATTENDEE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;RSVP=TRUE;CN=Andreas Oe sterreicher:mailto:oesi@technikum-wien.at ATTENDEE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;RSVP=TRUE;CN=Richard El gner:mailto:richard.elgner@gmx.net ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE:mailto:burkha rt@technikum-wien.at ORGANIZER;CN=Alexander Nimmervoll:mailto:nimm@technikum-wien.at X-SOGO-SEND-APPOINTMENT-NOTIFICATIONS:NO END:VEVENT END:VCALENDAR line 31:11: expecting "COLON", found ' '

Original comment by: aluxnimm

Original Ticket: outlookcaldavsynchronizer/11

aluxnimm commented 9 years ago

This cannot be parsed, because the event is malformed, because:

a) according to RFC 2445 the Property 'DESCRIPTION' is terminated by a CRLF, so 'TREFFPUNKT' is not part of the 'DESCRIPTION'-property value b) 'TREFFPUNKT' is not a valid iCalendar-Property c) 'TREFFPUNKT' is not followed by a colon, which would be required to meet the general property syntax

Currently OutlookCalDavSynchronizer cannot handle malformed iCal Entites.

Original comment by: nertsch

aluxnimm commented 9 years ago

Original comment by: nertsch