Closed Bug 1643552 Opened 4 years ago Closed 4 years ago

browser_attendeesDialog.js failing on beta

Categories

(Calendar :: Dialogs, defect)

defect

Tracking

(thunderbird78 fixed)

RESOLVED FIXED
Thunderbird 78.0
Tracking Status
thunderbird78 --- fixed

People

(Reporter: darktrojan, Assigned: darktrojan)

References

Details

Attachments

(1 file, 1 obsolete file)

It looks like I've created something which works on ICAL.js but not libical. Now to figure out what.

The test is trying to do things like cal.createDuration("P-2D") which libical can't handle. I think somewhere in the distant past I've discovered that before.

Attachment #9154453 - Flags: review?(paul)
Attachment #9154453 - Flags: approval-calendar-beta?(paul)

Why is it beta specific?

Comment on attachment 9154453 [details] [diff] [review] 1643552-libical-period-string.diff Review of attachment 9154453 [details] [diff] [review]: ----------------------------------------------------------------- LGTM.
Attachment #9154453 - Flags: review?(paul)
Attachment #9154453 - Flags: review+
Attachment #9154453 - Flags: approval-calendar-beta?(paul)
Attachment #9154453 - Flags: approval-calendar-beta+

(In reply to Geoff Lankow (:darktrojan) from comment #1)

The test is trying to do things like cal.createDuration("P-2D") which libical can't handle. I think somewhere in the distant past I've discovered that before.

Is that valid at all? Should this be "-P2D"? According to https://tools.ietf.org/html/rfc5545#section-3.3.6 the duration format is:
dur-value = (["+"] / "-") "P" (dur-date / dur-time / dur-week)
dur-date = dur-day [dur-time]
dur-day = 1*DIGIT "D"

For example integer is defined as https://tools.ietf.org/html/rfc5545#section-3.3.8:
integer = (["+"] / "-") 1*DIGIT
indicating to me that "-2" in "P-2D" is not valid.

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

Why is it beta specific?

The experimental icaljs library is enabled only on Trunk be default. All other branches use the matured libical library by default.

Flags: needinfo?(geoff)

You're probably right about it being invalid. It scarcely matters since it's not the point of the test, but since I'm now not rushing for a solution I've come up with a better one.

Flags: needinfo?(geoff)

Let's do this instead. The last patch was stupid.

Attachment #9154453 - Attachment is obsolete: true
Attachment #9154846 - Flags: review?(paul)
Attachment #9154846 - Flags: approval-calendar-beta?(paul)
Comment on attachment 9154846 [details] [diff] [review] 1643552-libical-period-string-2.diff Review of attachment 9154846 [details] [diff] [review]: ----------------------------------------------------------------- LGTM, that is much nicer than the previous one.
Attachment #9154846 - Flags: review?(paul)
Attachment #9154846 - Flags: review+
Attachment #9154846 - Flags: approval-calendar-beta?(paul)
Attachment #9154846 - Flags: approval-calendar-beta+

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/4da3c65dedbf
Fix browser_attendeesDialog.js failing with libical. r=pmorris DONTBUILD

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 79
Target Milestone: 79 → 78
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: