Open Bug 851404 Opened 11 years ago Updated 6 years ago

Searching for a flag without a requestee is broken

Categories

(bugzilla.mozilla.org :: Search, defect)

Production
x86
macOS
defect
Not set
normal

Tracking

()

People

(Reporter: glob, Unassigned)

References

Details

(From Curtis Koenig [:curtisk] from Bug 828344 comment #13)
> Searching for a flag without a requestee also is broken
> ie. 
> flag, contains the string, sec-review
> flag requestee, is empty
(In reply to Byron Jones ‹:glob› from comment #0)
> > flag requestee, is empty

The searching system cannot search for empty strings. This is not a regression. If you leave the value field empty, it's ignored, as Bugzilla always did.
(In reply to Frédéric Buclin from comment #1)
> (In reply to Byron Jones ‹:glob› from comment #0)
> > > flag requestee, is empty
> 
> The searching system cannot search for empty strings. This is not a
> regression. If you leave the value field empty, it's ignored, as Bugzilla
> always did.

Then I am confused as to why this worked until the upgrade and then broke? The original was:
flag:contains:sec-review
requestee is blank

As a workaround I found that this search works:
flag:contains:secreview
[NOT]flag requestee:is not empty
(In reply to Curtis Koenig [:curtisk] from comment #2)
> Then I am confused as to why this worked until the upgrade and then broke?
> The original was:
> flag:contains:sec-review
> requestee is blank

bugzilla’s searching mechanics got a complete rewrite between 4.0 and 4.2.
see http://globau.wordpress.com/2012/07/13/bugzilla-4-2-whats-new-searching/
(In reply to Frédéric Buclin from comment #1)
> (In reply to Byron Jones ‹:glob› from comment #0)
> > > flag requestee, is empty
> 
> The searching system cannot search for empty strings. This is not a
> regression. If you leave the value field empty, it's ignored, as Bugzilla
> always did.

this isn't true on bmo, where we have an 'is not emtpy' operator.
Component: General → Search
You need to log in before you can comment on or make changes to this bug.