Closed Bug 1913224 Opened 1 year ago Closed 1 year ago

After repairing an IMAP folder, total/unread message counts are displayed incorrectly

Categories

(Thunderbird :: Folder and Message Lists, defect)

Thunderbird 128
defect

Tracking

(thunderbird_esr128? fixed)

RESOLVED FIXED
131 Branch
Tracking Status
thunderbird_esr128 ? fixed

People

(Reporter: welpy-cw, Assigned: welpy-cw)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression, Whiteboard: [TM 128.2.1])

Attachments

(1 file)

Steps to reproduce:

  1. Open the properties of an IMAP folder that is not currently selected.
  2. Repair the folder.

Expected result:
Message counts are reset to 0 and increase while the message headers are downloaded.

Actual result:
Message counts are not reset and are show a multiple of the actual counts after repairing.

In Daily (with bug 1910168 fixed) the same happens also when repairing the currently selected folder.

Another observation that may be a regression of the referenced bug:

Repairing an IMAP folder after deleting some of its messages may result in the following log being displayed in the console multiple times:

gloda.index_msg: Exception while attempting to mark message with gloda state afterdb commit NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIMsgDBHdr.getUint32Property]
    _commitCallback resource:///modules/gloda/IndexMsg.sys.mjs:144
    handleCompletion resource:///modules/gloda/GlodaDatastore.sys.mjs:61
    editFolder chrome://messenger/content/about3Pane.js:3423
    <anonymous> chrome://messenger/content/about3Pane.js:6296
    doCommand chrome://messenger/content/mailCommon.js:736
    triggerCommand chrome://messenger/content/about3Pane.js:867
    onCommand chrome://messenger/content/about3Pane.js:851
    handleEvent chrome://messenger/content/about3Pane.js:326
Assignee: nobody → h.w.forms
Status: NEW → ASSIGNED
Target Milestone: --- → 131 Branch

Pushed by john@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/160fb8d4126e
Reset certain properties when repairing an IMAP folder. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Whiteboard: [TM 128.2.1]
Blocks: tb128found

Comment on attachment 9419183 [details]
Bug 1913224 - Reset certain properties when repairing an IMAP folder. r=#thunderbird-reviewers

[Approval Request Comment]
Regression caused by (bug #): bug 550286
User impact if declined: After repairing an IMAP folder, total/unread message counts are displayed incorrectly
Testing completed (on c-c, etc.): c-c and beta
Risk to taking this patch (and alternatives if risky): fairly low

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

Comment on attachment 9419183 [details]
Bug 1913224 - Reset certain properties when repairing an IMAP folder. r=#thunderbird-reviewers

[Triage Comment]
Approved for esr128

Attachment #9419183 - Flags: approval-comm-esr128? → approval-comm-esr128+

This is causing comm/mail/base/test/browser/browser_repairFolder.js failures (and failing functionality) - https://treeherder.mozilla.org/jobs?repo=comm-esr128&selectedTaskRun=FC31dvCeQ0K0kvQmU1al7A.0 - uplifting bug 1904799 should fix that.

Flags: needinfo?(corey)
See Also: → 1904799

We've picked up the bug 1904799 uplift in today's build. Thanks Magnus.

Flags: needinfo?(corey)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: