Closed Bug 1940193 Opened 6 months ago Closed 6 months ago

An exception while handling a CalDAV item stops all subsequent items being processed

Categories

(Calendar :: Provider: CalDAV, defect)

defect

Tracking

(thunderbird_esr128 fixed, thunderbird135 fixed)

RESOLVED FIXED
136 Branch
Tracking Status
thunderbird_esr128 --- fixed
thunderbird135 --- fixed

People

(Reporter: darktrojan, Assigned: darktrojan)

References

Details

Attachments

(1 file)

If, while processing a CalDAV request, an exception is thrown (such as bug 1659076's "foundItem is null") the code will just bubble the exception up and not handle the rest of the request payload, because there is no exception handling. This is madness.

I've filed a separate bug as (a) I'm not convinced it's the solution to all of the other bugs' problems and (b) those bugs have enough comments in them already.

I tried to write a regression test for this and it's not as bad as I first thought. There's still many things which could potentially fail on one item but shouldn't prevent the other items being processed. But the test I had in mind isn't going to work.

An exception thrown handling one item shouldn't prevent the handling of subsequent items.

Target Milestone: --- → 136 Branch

Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/940b8f4cc12e
Catch and log errors while processing CalDAV item requests. r=mkmelin

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

Comment on attachment 9445979 [details]
Bug 1940193 - Catch and log errors while processing CalDAV item requests. r=#thunderbird-reviewers

[Approval Request Comment]
Regression caused by (bug #):
User impact if declined: I'm hoping this fixes reports of calendar events mysteriously disappearing.
Testing completed (on c-c, etc.): Landed on Friday.
Risk to taking this patch (and alternatives if risky): Not risky. This is just a few try/catch blocks.

Attachment #9445979 - Flags: approval-comm-beta?

Comment on attachment 9445979 [details]
Bug 1940193 - Catch and log errors while processing CalDAV item requests. r=#thunderbird-reviewers

[Triage Comment]
Approved for beta

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

Comment on attachment 9445979 [details]
Bug 1940193 - Catch and log errors while processing CalDAV item requests. r=#thunderbird-reviewers

[Approval Request Comment]
Regression caused by (bug #):
User impact if declined: I'm hoping this fixes reports of calendar events mysteriously disappearing.
Testing completed (on c-c, etc.): In 135 beta 2.
Risk to taking this patch (and alternatives if risky): Not risky. This is just a few try/catch blocks.

Attachment #9445979 - Flags: approval-comm-esr128?

Comment on attachment 9445979 [details]
Bug 1940193 - Catch and log errors while processing CalDAV item requests. r=#thunderbird-reviewers

[Triage Comment]
Approved for esr128

Attachment #9445979 - 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: