Closed Bug 304674 Opened 19 years ago Closed 19 years ago

ICS Description Fields Containing Comma Truncated

Categories

(Calendar :: Internal Components, defect)

x86
Windows Server 2003
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 268201

People

(Reporter: rafael, Assigned: shaver)

Details

Attachments

(1 file)

2.19 KB, application/octet-stream
Details
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

Upon importing Outlook 2003-generated ICS files with commas in the DESCRIPTION
field, the field is truncated (treated as a multiple value separator).

Reproducible: Always

Steps to Reproduce:
1. Open Sunbird
2. Import ICS containing comma character in DESCRIPTION field
3. Open event properties, look at Note field.

Actual Results:  
Imported DESCRIPTION text was truncated.

Expected Results:  
Imported DESCRIPTION text intact.

Similar to bug https://bugzilla.mozilla.org/show_bug.cgi?id=286423
Reproduced in nightly trunk Gecko/20050814.

Affected block:

DESCRIPTION:Hello XXX, \n\nXXX XXX has invited you to join a meeting on the Web,
using WebEx. \n\nTopic: XXX's meeting \nDate: Thursday, April 28, 2005 \nTime:
12:30 pm, Eastern Daylight Time (GMT -04:00, New York) \nMeeting number: XXX XXX
XXX \nMeeting password: XXX \n\nPlease click the following link to see more
information, or to join the meeting. \nNEW USER? Prepare your computer in
advance of the meeting by clicking New User on the navigation bar.
\n\n<https://xacta.webex.com/xacta/j.php?ED=XXX&UID=XXX> \n\nTeleconference:
Call in tollfree phone number (US/Canada): 1-866-XXX-XXXX\nCall in phone number
(US/Canada): 1-XXX-XXX-XXXX \n\nTo contact XXX XXX, call 1-703-726-2217 or,
\nsend a message to this address: XXX.XXX@XXX.com \n\n \n\nTo add this meeting
to your calendar program (for example, Microsoft Outlook or Lotus Notes), do the
following:  \n\n* For all calendar programs (except Lotus Notes), click the
following link, or copy the link and paste it into your Web browser:
\n<https://xacta.webex.com/xacta/j.php?ED=XXX&UID=XXX&ICS=MI> \n\n*For Lotus
Notes, follow these steps: \n1.Right-click the attached iCalendar format (*.ics)
file, and then choose View. \n2.Click Import All. A new broadcast email message
is added to your Inbox. \n3.Open the new message. \n4.Click Respond button. A
menu appears. \n5.Click Accept.  \n\nThe host requests that you check for
compatibility of rich media players for Universal Communications Format (UCF)
before you join the session. UCF allows you to view multimedia during the
session. To check now, click the following link: \nhttps://XXX/XXX/XXX.php
\n\nhttp://www.webex.com\nWe've got to start meeting like this(TM) \n

How it gets imported:

 click the following link: \nhttps://XXX/XXX/XXX.php
\n\nhttp://www.webex.com\nWe've got to start meeting like this(TM) \n

Notice this is the last bit after the last comma in the string.
I imported an event with a description field conatining this: jag, vet, inte
When I imported it showed up as: jag\, vet\, inte

However, I didn't try with a .ics from outlook, mine was from Sunbird.
It would be great if you could attach a .ics with this problem.

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20050814 Mozilla
Sunbird/0.2+
Probably related to bug 284791 as well. Adding 'qawanted' for a clean testcase
file that can be imported to show this.
Keywords: qawanted
Attached file Sample ICS —
Suggest removing 'qawanted'.
Attached test-case ICS file and marked it binary to maintain integrity.
How does one go about getting higher powers? :P
Keywords: qawanted
I can confirm that the testcase fails to import the entire description. 
However, I'm wondering if this is a failure of the program that created it to
properly follow the standard, rather than a problem with Sunbird.  I'm not
extremely well versed in RFC2445, but these excerpts seem relevant:

Section 4.1.1
Property parameters with values containing a COLON, a SEMICOLON or a
   COMMA character MUST be placed in quoted text.

Section 4.2
Property parameter values that contain the COLON (US-ASCII decimal
   58), SEMICOLON (US-ASCII decimal 59) or COMMA (US-ASCII decimal 44)
   character separators MUST be specified as quoted-string text values.

Neither of these rules seem to be followed in the testcase.  Am I missing something?

(In reply to comment #4)
> Attached test-case ICS file and marked it binary to maintain integrity.
Probably best to just leave it as text/calendar in the future.

> How does one go about getting higher powers? :P
Email Gerv if you think you have proven you deserve them.
http://www.mozilla.org/quality/help/unconfirmed.html

(In reply to comment #5)
> Neither of these rules seem to be followed in the testcase.  Am I missing
something?

Gotta love non-compliant software. This was generated via WebEx. May need to
sick some evangelists on WebEx...
This basically duplicates Bug 268201.

Property parameters come before the colon, property values come after the colon.
 So the commas must be backslashed.

The relevant section for property values is RFC2445 sec4.3.11 
   ... A COMMA character in a
   "TEXT" property value MUST be escaped with a BACKSLASH character
   (US-ASCII decimal 92). A SEMICOLON character in a "TEXT" property
   value MUST be escaped with a BACKSLASH character (US-ASCII decimal
   92). ...

I agree it looks like webex is producing non-conforming ics files.

(In reply to comment #5)
> Section 4.1.1
> Property parameters...
> 
> Section 4.2
> Property parameter 
> 
>



*** This bug has been marked as a duplicate of 268201 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: