Closed Bug 274408 Opened 20 years ago Closed 17 years ago

iCalendar export shows summaries only after comma (must be escaped)

Categories

(Bugzilla :: Query/Bug List, defect)

2.19.1
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.22

People

(Reporter: Biesinger, Assigned: colin)

Details

Attachments

(1 file, 1 obsolete file)

[unsure whether this is the right component...]

I tried to export a buglist as iCalendar file; when importing into evolution
1.4, for summaries that contained a comma (','), only the part after it was shown.

Per http://www.kanzaki.com/docs/ical/summary.html the value type of SUMMARY is TEXT.

From http://www.kanzaki.com/docs/ical/text.html#def it seems that commas must be
escaped, but they aren't in the ics file.
Reassigning bugs that I'm not actively working on to the default component owner
in order to try to make some sanity out of my personal buglist.  This doesn't
mean the bug isn't being dealt with, just that I'm not the one doing it.  If you
are dealing with this bug, please assign it to yourself.
Assignee: justdave → query-and-buglist
QA Contact: mattyt-bugzilla → default-qa
Attached patch Escape commas in ics filter (obsolete) — Splinter Review
Here's a patch that fixes it.
Is there an ETA when this problem will be fixed? At the moment Bugzilla creates invalid iCalendar files. In iCalendar files, commas in all text fields must be escaped as \, (otherwise it is interpreted as multiple value separator). As the result calendar clients (e.g. Sunbird, Lightning) can't display the events/tasks properly. (And results in Bugs blaming Sunbird, e.g. Bug 351723 ;-)
Comment on attachment 214532 [details] [diff] [review]
Escape commas in ics filter

>                              $var =~ s/([;\\\"])/\\$1/g;
>+                             $var =~ s/,/\\,/g;

All you have to do is to add "," to the existing list of characters to escape, on the first line above.
Attachment #214532 - Flags: review?(LpSolit) → review-
This is a trivial change and indeed fixes the problem (I tested importing the list with Lightning on Thunderbird). I will approve it for 2.22.2 and 3.0RC1 if anyone wants to update the patch.
OS: Linux → All
Hardware: PC → All
Target Milestone: --- → Bugzilla 2.22
Attached patch patch, v1.1Splinter Review
No need to wait any longer for a one-liner. Updating the patch myself, r=LpSolit. Lightning 0.5 is not affected anymore as it now reads commas correctly, but I could still reproduce the bug with Lightning 0.3.1.
Attachment #214532 - Attachment is obsolete: true
Attachment #270970 - Flags: review+
Let's take it for 2.22.3 too.
Assignee: query-and-buglist → colin
Flags: approval3.0+
Flags: approval2.22+
Flags: approval+
tip:

Checking in Bugzilla/Template.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Template.pm,v  <--  Template.pm
new revision: 1.73; previous revision: 1.72
done

3.0:

Checking in Bugzilla/Template.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Template.pm,v  <--  Template.pm
new revision: 1.68.2.2; previous revision: 1.68.2.1
done

2.22.2:

Checking in Bugzilla/Template.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Template.pm,v  <--  Template.pm
new revision: 1.41.2.4; previous revision: 1.41.2.3
done
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: