Closed Bug 1860322 Opened 1 year ago Closed 1 year ago

Grouped By view breaks after reversing sort order and applying quick search

Categories

(Thunderbird :: Folder and Message Lists, defect)

Thunderbird 115
Desktop
Unspecified
defect

Tracking

(thunderbird_esr115? fixed, thunderbird120? affected)

RESOLVED FIXED
121 Branch
Tracking Status
thunderbird_esr115 ? fixed
thunderbird120 ? affected

People

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

References

Details

Attachments

(1 file)

STR:

  1. Enter a folder and apply Grouped By Sort and sorted by date.
  2. Reverse the sort order by clicking on the date column header.
  3. Quick search for any term.

Expected results:
Messages containing the entered search term are displayed.

Actual results:
Nothing is displayed in the thread pane, even after leaving quick search. Only after selecting another folder and coming back, messages are shown again.

Error console contains

Uncaught NS_ERROR_ILLEGAL_VALUE: Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIMsgDBView.open]
    _createView resource:///modules/DBViewWrapper.jsm:1153
    _applyViewChanges resource:///modules/DBViewWrapper.jsm:1505
    set userTerms resource:///modules/SearchSpec.jsm:313
    updateSearch chrome://messenger/content/quickFilterBar.js:508
    deferredUpdateSearch chrome://messenger/content/quickFilterBar.js:475
DBViewWrapper.jsm:1153
``

This seems to be caused by DBViewWrapper.magicSort applying a secondarySortType that nsMsgGroupView cannot handle. See attached patch.

Assignee: nobody → h.w.forms
Status: NEW → ASSIGNED
Attachment #9359593 - Attachment description: Bug 1860322 - Fix secondary sort order for Grouped By views. r=#thunderbird-reviewers → Bug 1860322 - Disregard secondary sort order for Grouped By views. r=#thunderbird-reviewers
See Also: → 1859284
Target Milestone: --- → 121 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/ecf34cefd7ef
Disregard secondary sort order for Grouped By views. r=darktrojan

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED

good for 115?

I've seen support requests about this.

Flags: needinfo?(h.w.forms)
Flags: needinfo?(h.w.forms)
Attachment #9359593 - Flags: approval-comm-esr115?

Comment on attachment 9359593 [details]
Bug 1860322 - Disregard secondary sort order for Grouped By views. r=#thunderbird-reviewers

[Triage Comment]
Approved for esr115

Attachment #9359593 - Flags: approval-comm-esr115? → approval-comm-esr115+
Blocks: 1868794
No longer blocks: 1868794
See Also: → 1868794
See Also: → 1868816

This caused problems on esr115. A new patch is needed.

https://treeherder.mozilla.org/logviewer?job_id=439227183&repo=comm-esr115

Flags: needinfo?(h.w.forms)
Flags: needinfo?(geoff)

Line 17 of the now backed out changeset removes

let outCount = {};

which my patch for comm-central does not.

Flags: needinfo?(h.w.forms)

my fault! thanks for checking. i will repush.

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

Attachment

General

Created:
Updated:
Size: