Open Bug 1776462 Opened 2 years ago Updated 1 year ago

Mail > Convert To > Event not working - CalIcsParser.jsm:167 - Calendar: ParserError: invalid line (no token ";" or ":") "\n"'ParserError: invalid line (no token ";" or ":") "\n"' when calling method: [calIICSService::parseICS] when parsing

Categories

(Calendar :: Provider: CalDAV, defect, P2)

Thunderbird 102

Tracking

(Not tracked)

People

(Reporter: richard.leger, Unassigned)

References

Details

Steps to reproduce:

In TB 102.0b8 (64-bit) on Windows 10, in mail view, select an email, right click, convert to > event, then edit event title, set date/time and reminders then save and close...

Result:

The event edit windows close without error, but the item is not saved in CalDAV calendar (silently fails) without end-user noticing!!!
Data is simply lost!

In error console the message below appears:

Calendar: ParserError: invalid line (no token ";" or ":")                 CalIcsParser.jsm:167 
"\n"'ParserError: invalid line (no token ";" or ":") "\n"' when calling method: [calIICSService::parseICS] when parsing      
(...)

Expected result:

New event to be saved correctly in calendar without error
or
If error raise that a prompt on screen indicate the that the item cannot be saved and why so issue can either be fixed or known by end-user... especially that the item was not saved as expected!

Summary: CalIcsParser.jsm:167 - Calendar: ParserError: invalid line (no token ";" or ":") "\n"'ParserError: invalid line (no token ";" or ":") "\n"' when calling method: [calIICSService::parseICS] when parsing → Convert To > Event not working - CalIcsParser.jsm:167 - Calendar: ParserError: invalid line (no token ";" or ":") "\n"'ParserError: invalid line (no token ";" or ":") "\n"' when calling method: [calIICSService::parseICS] when parsing
Summary: Convert To > Event not working - CalIcsParser.jsm:167 - Calendar: ParserError: invalid line (no token ";" or ":") "\n"'ParserError: invalid line (no token ";" or ":") "\n"' when calling method: [calIICSService::parseICS] when parsing → Mail > Convert To > Event not working - CalIcsParser.jsm:167 - Calendar: ParserError: invalid line (no token ";" or ":") "\n"'ParserError: invalid line (no token ";" or ":") "\n"' when calling method: [calIICSService::parseICS] when parsing
Component: Calendar Frontend → Provider: CalDAV

I can confirm that the convert to event Bug 1776462 as described by Richard Leger persists in TB 102.0.2 (32-bit) on Windows 10. Below I post an error message from the error console with identifiable information replaced with [XXX] or removed as indicated by [...]. I hope this helps.

Calendar: CalDAV: Unexpected status adding item to [XXX]: 415
BEGIN:VCALENDAR

PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN

VERSION:2.0

BEGIN:VTIMEZONE

TZID:Europe/Berlin

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:20220713T080213Z

LAST-MODIFIED:20220713T080318Z

DTSTAMP:20220713T080318Z

UID: [...]

SUMMARY: [...]

CATEGORIES: [...]

DTSTART;TZID=Europe/Berlin:20220727T110000

DTEND;TZID=Europe/Berlin:20220727T120000

DESCRIPTION: [...]

URL: [...]

TRANSP:OPAQUE

END:VEVENT

END:VCALENDAR

CalDavCalendar.jsm:636

NS_ERROR_FAILURE: Server Replied with 415 calCachedCalendar.js:640

Still happening in 105.0b2 (64-bit)...

https://www.rfc-editor.org/rfc/rfc5545#section-3.3.11

Text DESCRIPTION field:

          text       = *(TSAFE-CHAR / ":" / DQUOTE / ESCAPED-CHAR)
      ; Folded according to description above

   ESCAPED-CHAR = ("\\" / "\;" / "\," / "\N" / "\n")
      ; \\ encodes \, \N or \n encodes newline
      ; \; encodes ;, \, encodes ,

   TSAFE-CHAR = WSP / %x21 / %x23-2B / %x2D-39 / %x3C-5B /
                %x5D-7E / NON-US-ASCII
      ; Any character except CONTROLs not needed by the current
      ; character set, DQUOTE, ";", ":", "\", ","

ABNF. WSP & DQUOTE (https://www.rfc-editor.org/rfc/rfc5234#appendix-B.1):

     WSP            =  SP / HTAB
                            ; white space
              SP             =  %x20

     HTAB           =  %x09
                            ; horizontal tab

     DQUOTE         =  %x22
                            ; " (Double Quote)

     NON-US-ASCII  = UTF8-2 / UTF8-3 / UTF8-4
        ; UTF8-2, UTF8-3, and UTF8-4 are defined in [RFC3629  <https://www.rfc-editor.org/rfc/rfc3629>]

You can't use 0x0d.

User story+workaround for your info... and further highlight of the issue...
Bug 1738611 Comment 20

Duplicate of this bug: 1797045
Priority: -- → P2
Duplicate of this bug: 1800493
Duplicate of this bug: 1815915
Duplicate of this bug: 1838418

I noticed in recent beta such as 113beta (I think), 114.0b6 (64-bit) or 115.0b2 (64-bit)... that the Convert To entry is missing in the context menu when right click on a message in Mail > Message List. Was it disabled temporarily because of this bug not fixed? Or is it a Supernova UI bug that was unnoticed?

Currently you can no longer easily convert an email message into an Event or a Task, which is quite "handicapping" especially when it is used daily :-)

It's available from the More menu atm. Bug 1817705 for context.

Hello,

I am very sorry.

What do you think will this Problem be solved in the near future are will it not be solved?

regards
Carsten

Hello,

is this a Problem of the Caldav Backend (Calendar) or of the bad formated eMail?
In my case most of the Time Mails send by or from O365 forced the Problem. In case I forward this eMail to myself and convert this forwared mail to an event or task works fine.

thanks
regards
carsten

(In reply to Magnus Melin [:mkmelin] from comment #12)

It's available from the More menu atm. Bug 1817705 for context.

I am very sorry.

What do you think will this Problem be solved in the near future are will it not be solved?

is this a Problem of the Caldav Backend (Calendar) or of the bad formated eMails?
In my case most of the Time Mails send by or from O365 forced the Problem. In case I forward this eMail to myself and convert this forwared mail to an event or task works fine. For me the problem exists within the Mail Header of the Mail.

thanks
regards
carsten

Hello,

I see in the Call 1817705 that the possible to move the a event is gone from the menu in future version

Does this means that this very useful function will be deleted and not longer supported?

Thanks for any feedback
regards
Carsten

It's available through the More menu.
Bug 1817705 will add back the context menu for it.

And will it work? Is this error of "Calendar: ParserError:" solved by this later Version?
Which Version should I install to get my loved function" convert to event" working back?

thanks
regards
Carsten

Duplicate of this bug: 1815849

Hello,

I checked the calendar event which I tried to convert from Mail on my Iphone, where I can view this event.

I detect that the Content of the Mail is store in the URL field. And that makes some problems because a lot of values are not correct for a URL.

The Version I used is 102.13.0.

Will I get this feature "convert to event or task" running back again? Or will this feature will never work again?

regards
Carsten

For me convert to event or task is not working in Linux version 116.0b7 (64-bit) and not in 115.0.1 (64-bit) For some time it worked in the beta version, but now nothing is saved there too

You need to log in before you can comment on or make changes to this bug.