Closed Bug 1754186 Opened 2 years ago Closed 2 years ago

Download LDAP directory locally and switch to offline -> delete ldap file

Categories

(Thunderbird :: Address Book, defect)

Thunderbird 91
defect

Tracking

(thunderbird_esr91 fixed, thunderbird98 fixed)

RESOLVED FIXED
99 Branch
Tracking Status
thunderbird_esr91 --- fixed
thunderbird98 --- fixed

People

(Reporter: adrien.rybarczyk, Assigned: rnons)

References

(Regression)

Details

(Keywords: regression)

Attachments

(4 files)

Attached image downloadOK.PNG

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36

Steps to reproduce:

  1. Download a LDAP directory
  2. Wait for the end of the replication
  3. Switch to offline

Actual results:

The LDAP file, which has just been downloaded and created, is deleted.

Expected results:

The file is not deleted.

In LDAPReplicationService.jsm, there is no connection closure after a success.
This is why, if another event is triggered (e.g. going offline), it will apply the associated action (deleting the file).

Attached image switchOffline.PNG

Ping, please have a look.

Assignee: nobody → remotenonsense
Status: UNCONFIRMED → NEW
Ever confirmed: true

Clean up in _done should only be run once.

Status: NEW → ASSIGNED
Keywords: regression
Regressed by: ldap-js

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/2cb433ab0393
Prevent LDAP replication file being removed after going offline. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch

Comment on attachment 9262956 [details]
Bug 1754186 - Prevent LDAP replication file being removed after going offline. r=mkmelin

[Approval Request Comment]
Regression caused by (bug #): bug 1696625
User impact if declined: Going offline immediately after replicating a LDAP address book will delete the sqlite db file
Testing completed (on c-c, etc.): c-c
Risk to taking this patch (and alternatives if risky): low

Attachment #9262956 - Flags: approval-comm-esr91?
Attachment #9262956 - Flags: approval-comm-beta?

Comment on attachment 9262956 [details]
Bug 1754186 - Prevent LDAP replication file being removed after going offline. r=mkmelin

[Triage Comment]
Approved for beta

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

Ping, this patch will not apply on c-esr91 as is. Could you take a look?

Flags: needinfo?(remotenonsense)

Rebase to esr91, only differences are the file paths.

[Approval Request Comment]
Regression caused by (bug #): bug 1696625
User impact if declined: Going offline immediately after replicating a LDAP address book will delete the sqlite db file
Testing completed (on c-c, etc.): c-c
Risk to taking this patch (and alternatives if risky): low

Flags: needinfo?(remotenonsense)
Attachment #9269163 - Flags: approval-comm-esr91?
Attachment #9262956 - Flags: approval-comm-esr91?

Comment on attachment 9269163 [details] [diff] [review]
1754186-esr91.patch

[Triage Comment]
Approved for esr91

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

Attachment

General

Created:
Updated:
Size: