#64 Can't parse folded lines

Beta (1.0)
closed-rejected
Ben Fortuna
Parsing (53)
5
2007-08-01
2007-07-17
No

RFC 2445 section 4.1 says that long lines should be "folded" in an iCalendar file by starting the next line with a whitespace character, which should be discarded when reading the file. However, the load() method throws an exception when reading a file with such a wrapped line:

Exception in thread "main" net.fortuna.ical4j.data.ParserException: Error at line 11: Illegal property [ WRAPPED LINE]
at net.fortuna.ical4j.data.CalendarParserImpl.parse(CalendarParserImpl.java:138)
at net.fortuna.ical4j.data.CalendarBuilder.build(CalendarBuilder.java:167)
at net.fortuna.ical4j.data.CalendarBuilder.build(CalendarBuilder.java:149)
at net.fortuna.ical4j.data.CalendarBuilder.build(CalendarBuilder.java:137)
at net.fortuna.ical4j.util.Calendars.load(Calendars.java:73)
at demo.Main.main(Main.java:19)
Caused by: java.lang.IllegalArgumentException: Illegal property [ WRAPPED LINE]
at net.fortuna.ical4j.model.PropertyFactoryImpl.createProperty(PropertyFactoryImpl.java:1399)
at

Kontact, at last, wraps long lines this way during output.

Discussion

  • File causing the error

     
    Attachments
  • Ben Fortuna
    Ben Fortuna
    2007-07-18

    • labels: --> Parsing
    • milestone: --> Beta (1.0)
    • assigned_to: nobody --> fortuna
    • status: open --> pending-rejected
     
  • Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
    • status: pending-rejected --> closed-rejected