Closed
Bug 947615
Opened 12 years ago
Closed 11 years ago
Event description shows escaped comma and line breaks
Categories
(Calendar :: ICAL.js Integration, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
3.8
People
(Reporter: clokep, Assigned: MakeMyDay)
References
Details
(Whiteboard: [calconnect31-haspatch])
Attachments
(2 files, 1 obsolete file)
|
18.49 KB,
image/png
|
Details | |
|
4.11 KB,
patch
|
Fallen
:
review+
|
Details | Diff | Splinter Review |
This has been happening for a little while now, but I couldn't find a bug filed on it. I have a CalDAV calendar set up with Google Calendar on trunk Thunderbird and Lightning. When I create an event with a description, the description comes back with commas escaped (as \,) and line breaks as \n. See the attached screenshot of a tooltip. (Note that the commas in the Location field are also escaped.)
This is exhibited for both events created in Google Calendar itself and in Lightning. But viewing these events in Google Calendar doesn't show any issues.
Updated•11 years ago
|
Whiteboard: [calconnect31]
| Assignee | ||
Comment 1•11 years ago
|
||
On a CalDAV calendar it is not just the tooltip but also the information in event dialog which is displayed in that way, while this does not happen for local calendars. Additionally, e-mail invitation are also displayed with the escaped characters.
This happens only, if ical.js is enabled - with libical, everything is displayed as expected. So, it seems to be an ical.js issue.
Component: Provider: CalDAV → ICAL.js Integration
Comment 2•11 years ago
|
||
Confirmed and issue found. Since at the time I didn't exactly remember what valueAsIcalString does I just implemented the value property and forwarded the other one. Here is what is supposed to happen:
* get value gives you the unescaped string
* get valueAsIcalString gives you the escaped string
The setters behave the same way, which I have not fixed yet. See the failing test case. MakeMyDay, any chance you can pick up on this?
Updated•11 years ago
|
Whiteboard: [calconnect31] → [calconnect31-haspatch]
| Assignee | ||
Comment 3•11 years ago
|
||
Yes, I'll take this.
Assignee: nobody → makemyday
Status: NEW → ASSIGNED
| Assignee | ||
Comment 4•11 years ago
|
||
Updated patch based on your one. Setters are added. Text is not displayed escaped anymore and tests passed on try-comm-central.
Attachment #8498007 -
Attachment is obsolete: true
Attachment #8500149 -
Flags: review?(philipp)
Updated•11 years ago
|
Attachment #8500149 -
Flags: review?(philipp) → review+
| Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
| Reporter | ||
Comment 5•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 3.8
Comment 6•11 years ago
|
||
Geoff, check out this bug regarding your comment in IRC. There needs to be a difference between value and valueAsIcalString. I never really know which is which though and why we really need them both.
You need to log in
before you can comment on or make changes to this bug.
Description
•