Events from shared calendars not syncing



  • So… I found one of the events generating the error. It was an email converted to an event from Thunderbird. So how can we handle this? I got a lot more of this events.

    BEGIN:VCALENDAR
    VERSION:2.0
    PRODID:ownCloud Calendar 0.6.4
    BEGIN:VEVENT
    DTSTART:20140906T130000Z
    DTEND;VALUE=DATE-TIME:20140906T180000Z
    DTSTAMP:20141210T213459Z
    UID:9a64189e-489f-4b80-b060-c384c74734a6
    CREATED:20140820T210641Z
    DESCRIPTION:werte Festgemeinde\,\nnachdem ich öfter gehört habe\, dass da
     s Wochenende vor dem geplanten \nTermin zu höherer Teilnehmerzahl führen
      würde\, wollte ich mal fragen\, ob \ndas auch ginge - ich habe sogar an 
     beiden keine Bereitschaft! :-)\n\nAlso die Frage: passt euch der Samstag\,
      X. September auch?\n\nGruß\,\nAndi\n\n\n\nAm 09.08.2014 22:33\, schrieb 
     Jemand:\n> Werte Damen und Herren\,\n> der Ein oder Andere mag si
     ch vielleicht erinnern\, dass mein 30. \n> Geburtstag mehr oder weniger ge
     räuschlos vorüber gezogen ist\, was \n> unter anderem auch an den zur Ve
     rfügung stehenden Örtlichkeiten lag.\n>\n> Nachdem diesem Umstand nun Ab
     hilfe geschaffen ist\, möchte ich euch \n> einladen\, meinen 30+2. Geburt
     stag mit mir zu feiern! Damit Alle a \n> bissl bleiben können\, fangen wi
     r um 3 mit Kuchen an und würden dann ab \n> 6 mit dem Grillen loslegen...
     \n>\n> Wann1 :   Samstag\, X. September\n> Wann2:    Kinder & Kuchen ab 1
     5 Uhr\, Fleisch ab 18 Uhr\n> Wo:          Bla-bla-Straße 18
     \, Irgendwo\n>\n> Bitte gebt kurz Bescheid\, ob ihr kommen könnt!\n> Wir 
     freuen uns auf euch!\n>\n> Grüße\,\n> Ich\n>\n>\n>
    LAST-MODIFIED:20140907T204157Z
    LOCATION:Bla-bla-Straße 18\, Irgendwo
    SEQUENCE:0
    STATUS:CONFIRMED
    SUMMARY:30. Geburtstag Jemand Besonders
    TRANSP:OPAQUE
    X-MOZ-LASTACK:20140907T204156Z
    X-MOZ-GENERATION:1
    END:VEVENT
    END:VCALENDAR
    


  • It looks like if the “DESCRIPTION” contains more then 62 characters, this causes the parser to fail. Can you please confirm/check this?
    Edit: This applies also to the “SUMMARY”.



  • Found another one generated by Thunderbird:

    BEGIN:VCALENDAR
    VERSION:2.0
    PRODID:ownCloud Calendar 0.6.4
    BEGIN:VEVENT
    DTSTART:20140916T150000Z
    DTEND;VALUE=DATE-TIME:20140916T160000Z
    DTSTAMP:20141210T213459Z
    UID:npck6suj64k4groobpgv4m0hkk@google.com
    CREATED:20140408T164635Z
    DESCRIPTION:
    LAST-MODIFIED:20140917T202755Z
    LOCATION:Home
    SEQUENCE:0
    STATUS:CONFIRMED
    SUMMARY:Irgendein Termin
    TRANSP:OPAQUE
    X-MOZ-LASTACK:20140917T202800Z
    X-LIC-ERROR;X-LIC-ERRORTYPE=VALUE-PARSE-ERROR:No value for DESCRIPTION prop
     erty. Removing entire property:
    X-MOZ-GENERATION:1
    END:VEVENT
    END:VCALENDAR
    

  • developer

    1. According to RFC 2445, folding (splitting long lines) is done with <CR><LF><single linear whitespace character> (section 4.1). It seems that your content files don’t contain the <LF> character, in which case ical4j (in strict mode) doesn’t recognize multi-line content (which is correct) and reports a parsing error (also correct).

    2. However, until now, the ical4j option “relaxed unfolding” was set in a configuration file. It seems like this way of configuration doesn’t work with gradle anymore. So, since 0.6.9, ical4j was operating in strict mode.

    Can you please verify that the ics files don’t contain <LF> in the multi-line breaks?


  • developer

    DAVdroid 0.6.10.1 has relaxed parsing again, so it should work again. However, I strongly recommend to fix your iCal files because they are incorrect (in case it’s really the <LF> problem).



  • Well… For me it looks like the ics is correct. Attached a screenshot of one event in notepad++.
    The line ends with <CR><LF> and the new line starts with a space.

    ics


  • developer

    Please try with DAVdroid 0.6.10.1. If it doesn’t work, please post a binary version of a non-working iCalendar so that I can reproduce the issue.



  • What is a binary version? Is it just an exported ics file?


  • developer

    Yes, but as attachment so that I can see whether there’s CRLF or only CR.

    icalj4 also has an Outlook compatilibity switch which was disabled in DAVdroid >= 0.6.9 and <= 0.6.10, so for Outlook-generated files, there might be some issues that will be ignored now again. Also, relaxed parsing has been re-enabled.

    Could you already test with 0.6.10.1?



  • Just testet 0.6.10.1. Folding is working again.
    My events that were missing (in 0.6.10) are syncing correctly now.

    Thanks @rfc2822



  • Works also for me now.
    Anyway, here you can find one ICS: https://www.hidrive.strato.com/lnk/RdS52Ow0

    Thanks for your support.


  • developer

    Ok, good that it now works, so I’ll close this.


Log in to reply