Bug 1665487

Summary: Problem with "Contains none of the strings"
Product: [Community] Bugzilla Reporter: Stanislav Zidek <szidek>
Component: Query/Bug ListAssignee: PnT DevOps Devs <hss-ied-bugs>
Status: CLOSED DUPLICATE QA Contact: tools-bugs <tools-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.0CC: khong, qgong
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-14 01:17:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stanislav Zidek 2019-01-11 15:12:57 UTC
Description of problem:
When searching for bugs without "rpl+" flag, operator "Contains none of the strings" is not able to filter such bugs out

Version
5.0

How reproducible:
always

Steps to Reproduce:
1. https://bugzilla.redhat.com/buglist.cgi?f1=flagtypes.name&f2=bug_id&list_id=9863886&o1=nowordssubstr&o2=anyexact&query_format=advanced&v1=rpl%2B&v2=1373162 (with "Contains none of the strings")
2. https://bugzilla.redhat.com/buglist.cgi?f1=flagtypes.name&f2=bug_id&list_id=9863892&o1=notsubstring&o2=anyexact&query_format=advanced&v1=rpl%2B&v2=1373162 (with "Does not contain the string")
3.

Actual results:
1. lists the bug even though it has "rpl+"
2. empty list (this is expected)

Expected results:
Both queries give empty result.

Additional info:
Using negated "Contains any of the strings" behaves as expected.

Perhaps same problem as in the past - bz698703 ?

Comment 1 Jeff Fearn 🐞 2019-01-14 01:17:07 UTC
Yeah this has always been the way this works, to change it requires re-engineering the query builder.

*** This bug has been marked as a duplicate of bug 1260009 ***