Skip to content

Bug 889650: Fix crash when searching "match all of the same field" on Flags - #179

Merged
justdave merged 3 commits into
bugzilla:mainfrom
topunix:bug-889650-harmony
Aug 5, 2026
Merged

Bug 889650: Fix crash when searching "match all of the same field" on Flags#179
justdave merged 3 commits into
bugzilla:mainfrom
topunix:bug-889650-harmony

Conversation

@topunix

@topunix topunix commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Details

Harmony port of bugzilla/bugzilla#237. The grouped flag search in
_flagtypes_nonchanged was reading from $bugs_table, which has already been
reassigned to the grouped alias at that point, so the subquery referenced a
bugs_g2 table that does not exist. Reads from the real bugs table instead.

Also adds the matching regression test to CUSTOM_SEARCH_TESTS.

Additional info

@mrenvoize
mrenvoize force-pushed the bug-889650-harmony branch from 57f73b8 to 86d5e29 Compare August 3, 2026 16:05
mrenvoize
mrenvoize previously approved these changes Aug 3, 2026

@mrenvoize mrenvoize left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as 5.2 and 5.0.4 submission.. works well in my testing.

@mrenvoize

Copy link
Copy Markdown
Contributor

Doh.. I missed the whitespace requirement changes when reviewing.. good thing we have tests :)

@mrenvoize

Copy link
Copy Markdown
Contributor

I opened a PR against your remote and branch @topunix, that should fix the test failures above.

@justdave
justdave dismissed mrenvoize’s stale review August 4, 2026 00:07

Tests are failing, not ready to land.

Comment thread Bugzilla/Search.pm Outdated
The fix for the Flags "match all of the same field" crash replaced
a tab-indented line with a literal tab character instead of spaces,
tripping t/005whitespace.t.
@justdave
justdave dismissed their stale review August 5, 2026 19:31

superceded by mrenvoize's review

@justdave
justdave merged commit e30fa7f into bugzilla:main Aug 5, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants