Closed Bug 1795797 Opened 3 years ago Closed 3 years ago

CalDAV doesn't sync all items if the server says another request should be made

Categories

(Calendar :: Provider: CalDAV, defect)

defect

Tracking

(thunderbird_esr102 fixed, thunderbird107 fixed)

RESOLVED FIXED
108 Branch
Tracking Status
thunderbird_esr102 --- fixed
thunderbird107 --- fixed

People

(Reporter: darktrojan, Assigned: darktrojan)

References

Details

Attachments

(3 files)

If CalDavWebDavSyncHandler encounters a 507 response, meaning the server has more items than it is willing to return in one request, it sets a flag and then does nothing about it. It decides it hasn't seen any items that weren't in the first request and deletes them.

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/6d4e7a383e6f
If a CalDAV sync response says there are more items, request the items. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED

Comment on attachment 9298931 [details]
Bug 1795797 - If a CalDAV sync response says there are more items, request the items. r=#thunderbird-reviewers

[Triage Comment]
Approved for beta.

Attachment #9298931 - Flags: approval-comm-beta+

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/731ffefef2d3
Test CalDAV with multiple requests needed to collect all items. r=mkmelin

Comment on attachment 9298960 [details]
Bug 1795797 - Test CalDAV with multiple requests needed to collect all items. r=#thunderbird-reviewers

[Approval Request Comment]
A test for the already uplifted patch.

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

I missed one of these in a review comment. It turns out there are many calls which do not await, although it doesn't appear to make any difference.

Comment on attachment 9298931 [details]
Bug 1795797 - If a CalDAV sync response says there are more items, request the items. r=#thunderbird-reviewers

[Approval Request Comment]
Regression caused by (bug #):
User impact if declined: items might disappear if a full sync happens, like we're triggering with bug 1792923
Testing completed (on c-c, etc.): in beta 1
Risk to taking this patch (and alternatives if risky): should be low

Attachment #9298931 - Flags: approval-comm-esr102?

Comment on attachment 9298960 [details]
Bug 1795797 - Test CalDAV with multiple requests needed to collect all items. r=#thunderbird-reviewers

[Triage Comment]
Approved for beta

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

Comment on attachment 9298931 [details]
Bug 1795797 - If a CalDAV sync response says there are more items, request the items. r=#thunderbird-reviewers

[Triage Comment]
Approved for esr102

Perhaps the test patch should also be applied? This needs to be applied before bug 1792923 (not 1793323).

Flags: needinfo?(rob)
Attachment #9298931 - Flags: approval-comm-esr102? → approval-comm-esr102+

Reopening so that D159823 can land on c-c.
D159823 also needs to make it to beta and 102.

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Flags: needinfo?(rob)

Pushed by alessandro@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/edb87d646ad2
Await CalDAVServer.putItemInternal wherever it is called. r=mkmelin

Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → FIXED

Comment on attachment 9299417 [details]
Bug 1795797 - Await CalDAVServer.putItemInternal wherever it is called. r=#thunderbird-reviewers

[Approval Request Comment]
Regression caused by (bug #): N/A
User impact if declined: N/A
Testing completed (on c-c, etc.):
Risk to taking this patch (and alternatives if risky):
Low risk. It's all test code and it just adding await to some places that didn't have it. The rest of this bug has been uplifted, this patch should go too.

Attachment #9299417 - Flags: approval-comm-esr102?
Attachment #9299417 - Flags: approval-comm-beta?

Comment on attachment 9299417 [details]
Bug 1795797 - Await CalDAVServer.putItemInternal wherever it is called. r=#thunderbird-reviewers

[Triage Comment]
Approved for beta
Approved for esr102

[Triage Comment]

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

Attachment

General

Created:
Updated:
Size: