Closed Bug 1908530 Opened 2 months ago Closed 2 months ago

Items not added to the offline cache when network fails (TypeError: calendar is null)

Categories

(Calendar :: Internal Components, defect)

Thunderbird 102
defect

Tracking

(thunderbird_esr115 affected, thunderbird_esr128? fixed, thunderbird130 fixed)

RESOLVED FIXED
131 Branch
Tracking Status
thunderbird_esr115 --- affected
thunderbird_esr128 ? fixed
thunderbird130 --- fixed

People

(Reporter: Fallen, Assigned: mkmelin)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

In https://searchfox.org/comm-central/rev/5dd86d8570114551f29277f4eef220757168c7ff/calendar/base/src/CalCachedCalendar.sys.mjs#709

If the network fails (isUnavailableCode() is true), then a message is shown that includes calendar.name. However, in line 734, the callback is always called without a calendar. Hence items are never actually added to the offline cache on failure.

The same happens for other operations.

I'd recommend uplifting this once done as it causes events not to be changed while failing the network.

Maybe this is the root cause of various bugs we've got for not-properly-syncing nextcloud calendars...

This seems to go back to bug 1769200 based on the code. I'm requesting tracking this for 128, as it inhibits adding items while offline or during a network outage. You might also consider backporting this to 115, I expect the fix to be low risk.

Keywords: regression
Regressed by: 1769200
Version: unspecified → Thunderbird 102
Assignee: nobody → mkmelin+mozilla
Status: NEW → ASSIGNED
Target Milestone: --- → 131 Branch

Pushed by brendan@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/247126682247
Fix "calendar is null" error in adoptItemCallback. r=Fallen

Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED

Comment on attachment 9417954 [details]
Bug 1908530 - Fix "calendar is null" error in adoptItemCallback. r=Fallen

[Approval Request Comment]
Regression caused by (bug #): bug 1769200
User impact if declined: offline cache inconsistency after network errors
Testing completed (on c-c, etc.): c-c
Risk to taking this patch (and alternatives if risky): not too risky

Attachment #9417954 - Flags: approval-comm-esr128?
Attachment #9417954 - Flags: approval-comm-beta?

Comment on attachment 9417954 [details]
Bug 1908530 - Fix "calendar is null" error in adoptItemCallback. r=Fallen

[Triage Comment]
Approved for beta

Attachment #9417954 - Flags: approval-comm-beta? → approval-comm-beta+

Comment on attachment 9417954 [details]
Bug 1908530 - Fix "calendar is null" error in adoptItemCallback. r=Fallen

[Triage Comment]
Approved for esr128

Attachment #9417954 - Flags: approval-comm-esr128? → approval-comm-esr128+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: