Closed Bug 515316 Opened 15 years ago Closed 15 years ago

Retention policy settings of folders are altered to an other folder's setting when "Use my account settings" of a different folder is changed

Categories

(MailNews Core :: Backend, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 3.0rc1

People

(Reporter: World, Assigned: Bienvenu)

References

Details

(Keywords: dataloss, Whiteboard: [no l10n impact])

Attachments

(1 file)

[Build Id]
> Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.4pre) Gecko/20090907 Shredder/3.0b4pre

"Use my account settings" of retention policy of a folder is changed to Inbox's setting when "Use my account settings" of Inbox is changed.
This was observed while I tried to see Tb trunk's behaviour for Bug 515037.

a) Above is observed on all of POP3(Non Global Inbox use), IMAP, "Local Folders".
b) Upon folder creation, "Use my account settings" looks to be inherited from
   "Use my account settings" of Inbox of the account.
c) Problem doesn't seem to occur on folder of "Default Account".
d) Problem is observed after restart of Tb.
e) Once retention policy setting of a folder is changed with "Use my account settings"=unchecked, problem doesn't seem to occur, even after change back to original/default setting.

Data/Control block for retention policy is not cleanly initialized upon folder creation?

[Steps to reproduce]

1. Create a new profile
2. Create first account(default account, POP3)
   => "Local Folders" is created too. 
3. Create Inbox, Sent etc. at "Local Folders"
4. Create some accounts(POP3, IMAP. Non default account)
5. Create some folders under each account.
6. View "Use my account settings" of Inbox and some folders under an account.
7. Change "Use my account settings" of Inbox
   (Checked=>Unchecked, Unchecked=>Checked)
8. View "Use my account settings" of folders.
   If Checked=>Unchecked at step 7, Unchecked.
   If Unhecked=>Checked at step 7, Checked.
For Gmail IMAP subfolders, changing the status of "Use my account settings" in one folder changes it for all subfolders, but apparently not for the Inbox.

Was this observed already before the fix for bug 499306 checked in?
I've just noticed that bug 515037 was filed against 2.0 branch.

Bug 472203 may be related or a possible manifestation of this.
Checked with next build(bug 499306 is fixed on 9/06)
> Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.4pre) Gecko/20090902 Shredder/3.0b4pre

1. Folder creation(POP3):
   "Use my account settings"=Unchecked. Always default(never delete) was set. 
2. Folder creation(Local Folders):
   "Use my account settings"=Checked. => bug 515037 is reproduced with 9/02 build.
3. "Use my account settings" change of a folder, including Inbox:
   No other folder's "Use my account settings" was changed.
Similar reports: bug 516473, bug 518571.
I wonder if this is a side-effect of making the folders inherit the column settings.
In Henrix, a user noted the severity of this problem when she changed the retentions settings for her junk folder to delete most messages, and found that ALL of her messages in all folders were deleted.

This is a critical bug that needs to block.
Severity: normal → critical
Flags: blocking-thunderbird3?
Keywords: dataloss
From latest comment, I'd agree.
Flags: blocking-thunderbird3? → blocking-thunderbird3+
Whiteboard: [no l10n impact]
(In reply to comment #4)
> I wonder if this is a side-effect of making the folders inherit the column
> settings.

No.  That logic just peeks at the dbFolderInfo for a folder, and since the Inboxes never get closed we should not be triggering anything (since they should always be already open) and so there should be no behavioral change at all.
Note that some of the related reports are not restricted to the Inbox,
changing the settings in a Junk folder has been reported to cause similar effects (comment #5).
Changing initial "Inbox" in bug summary to "other folder", to avoid confusion or mis-leading.
Summary: "Use my account settings" of retention policy of a folder is changed to Inbox's setting when "Use my account settings" of Inbox is changed → "Use my account settings" of retention policy of a folder is altered to other folder's setting when "Use my account settings" of other folder is changed
I'think the title should be slightly different - because the change of retention policy applies to ALL of the other folders
Changing bug summary slightly, according to comment #13. I'm not native English speaker. Please modify bug summary to appropriate one.
Sorry to "Threaded view" lovers for frequent bug summary change.
Summary: "Use my account settings" of retention policy of a folder is altered to other folder's setting when "Use my account settings" of other folder is changed → "Use my account settings" of retention policy of folders is altered to an other folder's setting when "Use my account settings" of the "an other folder" is changed
Summary: "Use my account settings" of retention policy of folders is altered to an other folder's setting when "Use my account settings" of the "an other folder" is changed → "Use my account settings" of retention policy of folders is altered to an other folder's setting when "Use my account settings" of a different folder is changed
Mark, would it make sense for you to take a run at this, since you've poked at related stuff (bug 499306) in the past?
Assignee: nobody → bugzilla
Priority: -- → P2
I think it makes more sense for me to look at this.
Assignee: bugzilla → bienvenu
I experienced today a similar issue to the one described in comment #5. And I am able to reproduce it. In one sentence: changing the retention policy of a subfolder also immediately applies that change to the Inbox folder.

[System]: OSX 10.4.9, PPC, system language: English.

[Thunderbird ID]: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.1.4pre) Gecko/20090915 Lightning/1.0pre Thunderbird/3.0b4

[Steps to reproduce]:
1. Select any sub-folder, located under "Local Folders > Inbox".
2. Go under "Edit > Folder Properties > Retention Policy".
3. Uncheck the box "Use my account settings".
4. Check the button "Delete all but the most recent N messages".
5. Click the OK button and observe.

[Actual result]:
All messages but the N most recent ones are deleted, not only in the selected folder, but also in the Inbox, and in all or most other subfolders. When verifying the folder setting of the Inbox, I see that it has changed from "Use my account settings" to the setting applied at step 4.

[Expected result]:
The setting should only apply to selected folder, not to the main Inbox.

[Note]: I experienced this issue after upgrading from the previous Thunderbird Beta, 3.0b3.
Also, is seems that the new setting (set in step 4) applies to some, but not to all other sub-folders. I'm currently not able to figure out what rule is applied here. Possibly it does not apply to *all folders that had any sort of custom retention policy*, while the folders that never had any specific retention policy (where "Use my account settings" was checked) are affected.
The previous comment confirms what was reported in bug 516473, thus that has a wider impact than the account settings checkbox and the Inbox. As for the subfolders, I had noticed that as well, but changes were restrained within the set of subfolders and didn't go beyond that to other folders.

I'm adjusting the summary (again) to reflect that all settings may change.
OS: Windows XP → All
Hardware: x86 → All
Summary: "Use my account settings" of retention policy of folders is altered to an other folder's setting when "Use my account settings" of a different folder is changed → Retention policy settings of folders are altered to an other folder's setting when "Use my account settings" of a different folder is changed
I have the same/ a similar problem with SM2 Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5pre) Gecko/20091008 SeaMonkey/2.0pre Changing the retention policy for one subfolder spread around to other folders and resulted in data loss.
Flags: blocking-seamonkey2.0?
The problem is that when a folder falls back on the server defaults, it returns that retention settings object to the front end, which pokes at it directly, thus changing the server defaults, including potentially the "use server defaults" field, which it could set to false, if the user changes a folder. So the main fix will be to clone the incoming server settings, and to make the server settings object always get set to "use server defaults".
Status: NEW → ASSIGNED
If we don't cache the server settings, then the caller can't crunch our cached copy, and things are much happier.
Attachment #405334 - Flags: superreview?(neil)
Attachment #405334 - Flags: review?(neil)
Whiteboard: [no l10n impact] → [no l10n impact][has patch for r/sr neil]
Priority: P2 → P1
Comment on attachment 405334 [details] [diff] [review]
don't cache server settings

This will help for when the UI eventually goes straight to GetXXXValue and skips this step :-)
Attachment #405334 - Flags: superreview?(neil)
Attachment #405334 - Flags: superreview+
Attachment #405334 - Flags: review?(neil)
Attachment #405334 - Flags: review+
fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
solved my problems in Seamonkey. Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5pre) Gecko/20091009 SeaMonkey/2.0pre - Build ID: 20091009234639
Whiteboard: [no l10n impact][has patch for r/sr neil] → [no l10n impact]
Target Milestone: --- → Thunderbird 3.0rc1
I can no longer reproduce this with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5pre) Gecko/20091010 Shredder/3.0pre either. As a positive side effect, the fix here also seems to have resolved the problem in bug 499303.
Flags: blocking-seamonkey2.0?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: