Open Bug 1850670 Opened 2 years ago Updated 2 years ago

Ical.js fails parsing on invalid line despite full VCALENDAR object (but junk after it)

Categories

(Calendar :: ICAL.js Integration, defect)

Thunderbird 115
defect

Tracking

(thunderbird_esr115 affected)

Tracking Status
thunderbird_esr115 --- affected

People

(Reporter: stefan, Unassigned)

References

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36

Steps to reproduce:

Receive a message from an Office365 sender.

Actual results:

On the console:
JavaScript error: resource:///modules/calendar/Ical.jsm, line 2077: TypeError: state.component[1] is undefined
console.error: Calendar:
[JavaScript Error: "state.component[1] is undefined" {file: "resource:///modules/calendar/Ical.jsm" line: 2077}]'[JavaScript Error: "state.component[1] is undefined" {file: "resource:///modules/calendar/Ical.jsm" line: 2077}]' when calling method: [calIICSService::parseICS] when parsing

Expected results:

The invitation should be displayed.

Invitation is available on request.

Please post the invitation or—if you're not comfortable posting it on Bugzilla—email me via the Bugzilla mail function.

Flags: needinfo?(stefan)

Send by mail.

Component: Untriaged → General
Product: Thunderbird → Calendar
Target Milestone: --- → 115 Branch

Did you receive it and did you figure out what what the matter with it?

Flags: needinfo?(stefan) → needinfo?(leftmostcat)

I can forward it to any other person too. I would prefer invites that already have passed.

You can forward it to me as well yes.

I did receive the invitation; sorry for not responding before this. The issue with the invitation in question is the last line, beginning !DSPAM. For several reasons, this isn't valid a valid iCalendar content line. We probably shouldn't be failing entirely on encountering it, especially if we've successfully parsed the rest of the file, but that's the source of the problem.

Flags: needinfo?(leftmostcat)
Summary: Calendar fails parsing invitation → Ical.js fails parsing on invalid line despite full VCALENDAR object

Sean: thanks for this clarification.

Status: UNCONFIRMED → NEW
Component: General → ICAL.js Integration
Ever confirmed: true
Summary: Ical.js fails parsing on invalid line despite full VCALENDAR object → Ical.js fails parsing on invalid line despite full VCALENDAR object (but junk after it)
Target Milestone: 115 Branch → ---
See Also: → 1738611
You need to log in before you can comment on or make changes to this bug.