Enabling offline support for CalDAV calendar breaks dialogs or makes calendar disappear

RESOLVED FIXED in 1.9.1

Status

Calendar
General
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: TheOne, Assigned: Fallen)

Tracking

Lightning 1.9
1.9.1

Details

Attachments

(1 attachment)

(Reporter)

Description

5 years ago
I'm trying to add a private calendar via CalDAV. When adding a new calendar and enabling offline support, the dialog does not close at the end, but an error is shown in the error console.

STR:
1. Open the "New Calendar" dialog.
2. Check "CalDAV" and fill in an address to a CalDav server.
3. Check "Offline Support".
4. Click "Next".
5. Enter a name for the calendar and click "Next".

Expected behaviour:
The dialog should close and the calendar should be added.

Actual behaviour:
The dialog does not close. The following error is shown at the error console:

Error: '<error>' when calling method: [calICalendar::id] = <unknown>
Source file: resource://calendar/modules/calUtils.jsm -> file:///C:/Users/awagner/AppData/Roaming/Thunderbird/Profiles/9qtdiaml.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/calendar-js/calCachedCalendar.js
Line: 194

Adding the same calendar without offline support works fine.
However, if I go the the calendar properties afterwards and enable offline support, after clicking OK the calendar just disappears completely. The following error is shown at the error console:

Error: [Exception... "'[JavaScript Error: "this.mOfflineStorage is null" {file: "file:///C:/Users/awagner/AppData/Roaming/Thunderbird/Profiles/9qtdiaml.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/components/calDavCalendar.js" line: 259}]' when calling method: [calIChangeLog::offlineStorage]"  nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"  location: "JS frame :: resource://calendar/modules/calUtils.jsm -> file:///C:/Users/awagner/AppData/Roaming/Thunderbird/Profiles/9qtdiaml.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/calendar-js/calCachedCalendar.js :: calCachedCalendar :: line 123"  data: yes] STACK: 1: [resource://calendar/modules/calUtils.jsm -> file:///C:/Users/awagner/AppData/Roaming/Thunderbird/Profiles/9qtdiaml.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/calendar-js/calUtils.js:1364] notifyFunc
2: [resource://calendar/modules/calUtils.jsm -> file:///C:/Users/awagner/AppData/Roaming/Thunderbird/Profiles/9qtdiaml.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/calendar-js/calUtils.js:1367] calListenerBag_notify
3: [resource://calendar/modules/calProviderUtils.jsm:473] calObserverBag_notify
4: [resource://calendar/modules/calProviderUtils.jsm:790] cPB_setProperty
5: [chrome://calendar/content/calendar-properties-dialog.js:98] onAcceptDialog
6: [chrome://lightning/content/lightning-calendar-properties.js:16] ltn_onAcceptDialog
7: [chrome://global/content/bindings/dialog.xml:367] anonymous
8: [chrome://global/content/bindings/dialog.xml:368] _fireButtonEvent
9: [chrome://global/content/bindings/dialog.xml:342] _doButtonCommand
10: [chrome://global/content/bindings/dialog.xml:331] _handleButtonCommand

Source file: resource://calendar/modules/calUtils.jsm -> file:///C:/Users/awagner/AppData/Roaming/Thunderbird/Profiles/9qtdiaml.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/calendar-js/calUtils.js
Line: 1364

Comment 1

5 years ago
It also happens for "Google Calendars" too.Enabling Offline mode deletes or hides the calendar.
(Assignee)

Comment 2

5 years ago
Created attachment 686531 [details] [diff] [review]
Fix - v1

"In this tragic accident, investigators found it was a break failure. Many cached calendars were lost."
Assignee: nobody → philipp
Status: NEW → ASSIGNED
Attachment #686531 - Flags: review?(matthew.mecca)
Attachment #686531 - Flags: approval-calendar-beta?(matthew.mecca)
Attachment #686531 - Flags: approval-calendar-aurora?(matthew.mecca)
(Assignee)

Updated

5 years ago
Whiteboard: [wanted-1.9.x]
Comment on attachment 686531 [details] [diff] [review]
Fix - v1

Case closed. r=mmecca
Attachment #686531 - Flags: review?(matthew.mecca)
Attachment #686531 - Flags: review+
Attachment #686531 - Flags: approval-calendar-beta?(matthew.mecca)
Attachment #686531 - Flags: approval-calendar-beta+
Attachment #686531 - Flags: approval-calendar-aurora?(matthew.mecca)
Attachment #686531 - Flags: approval-calendar-aurora+
comm-central - http://hg.mozilla.org/comm-central/rev/d496343ae08b
comm-aurora - http://hg.mozilla.org/releases/comm-aurora/rev/ed5f1c59ead3
comm-beta - http://hg.mozilla.org/releases/comm-beta/rev/a708cd301a37
OS: Windows 7 → All
Hardware: x86_64 → All
Target Milestone: --- → 2.1
Attachment #686531 - Flags: approval-calendar-release+
comm-esr17 - https://hg.mozilla.org/releases/comm-esr17/rev/cdeed7b9449b
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: 2.1 → 1.9.1
Whiteboard: [wanted-1.9.x]
You need to log in before you can comment on or make changes to this bug.