If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

Can't import or delete from calendar entries with special characters

UNCONFIRMED
Unassigned

Status

Calendar
Import and Export
--
major
UNCONFIRMED
6 years ago
25 days ago

People

(Reporter: Bastard, Unassigned)

Tracking

Sunbird 1.0b1

Details

Attachments

(2 attachments)

(Reporter)

Description

6 years ago
User-Agent:       Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091211 Sunbird/1.0b1

It causes problems with vcs files that have been decoded from utf8 quoted-printable

Reproducible: Always

Steps to Reproduce:
1. Try to import the attached files
2. If properly imported try to delete them
3. See that some steps are not completed
(Reporter)

Comment 1

6 years ago
Created attachment 540298 [details]
Example of VCS files that causes bad behaviour
(Reporter)

Comment 2

6 years ago
Created attachment 540299 [details]
Another example of VCS files that causes bad behaviour

Comment 3

6 years ago
iCalendar files must be encoded in UTF-8 character encoding format. You files are in ANSI character encoding format and therefore Lightning reports a CAL_UTF8_DECODING_FAILED error.

Solution: Open the files in a text editor and change the encoding from ANSI to UTF-8. Now opening and import works fine.
(Reporter)

Comment 4

6 years ago
But if I am a user, how would I know that? Shouldn't sunbird autodetect file codification? Is that all ICS files are UTF-8 encoded by default except mine?

Google calendar does import correctly those files, so I think modifying the files is not the right approach.

Updated

6 years ago
Version: unspecified → Sunbird 1.0b1

Comment 5

6 years ago
Agreeing with comment #4, particular for remote calendar subscriptions that are updated beyond my control.  And especially particularly, for calendars that just add new events without discarding old ones: if one old event had a buggy character, the entire calendar is useless forever until that old and already-happened event is discarded!  At the very least, the calendar error message (Lightning 1.0b5 for me) is utterly unhelpful in pinning down what the problem character is.  Several mitigations come to mind:

* Attempt to change the encoding automatically.  According to comment #3 and http://forums.mozillazine.org/viewtopic.php?p=10920755#p10920755, that seems to be against Lightning's policy...but if it's really so easy to just "open the files in a text editor and change the encoding from ANSI to UTF-8", I'd much rather Lightning do that for me, and leave a warning note in the error log.

* Discard all events that occurred in the past, and only report errors if upcoming events have malformed characters.  Particularly for remote read-only calendars, where the calendar user has no hope of fixing the bug himself.

* Discard only those messages for which the characters cannot be correctly decoded, while leaving the other messages intact.  This is an awkward approach, since it drops some information and preserves others, but has the advantage of the calendar not appearing completely broken.  

I'm sure there are other heuristics that could be useful, but the current standards-stickler approach seems to be the least useful, even if it's the most correct.
OS: Windows 7 → All
Hardware: x86 → All
Component: Internal Components → Import and Export
You need to log in before you can comment on or make changes to this bug.