Closed Bug 474779 Opened 17 years ago Closed 17 years ago

Quicksearch cannot find mixed/upper case keywords

Categories

(Bugzilla :: Query/Bug List, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.2

People

(Reporter: mrbball, Assigned: mrbball)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080327 Firefox/2.0.0.12 Build Identifier: Bugzilla 3.2 According to the quicksearch documentation (page.cgi?id=quicksearch.html), the following fields are searched by default: Summary, Keywords, Product, Component, Status Whiteboard. However, when doing a quicksearch on a keyword that was originally entered in mixed or upper case, bugs with the specified keyword are not found. Here is an example from landfill. The keyword "KeyMe" is defined on landfill and there are currently over 100 bugs with that keyword, most still open: https://landfill.bugzilla.org/bugzilla-3.2-branch/buglist.cgi?keywords=KeyMe Note that the following query also returns the same 100+ bugs: https://landfill.bugzilla.org/bugzilla-3.2-branch/buglist.cgi?keywords=keyme However, if you do a quicksearch of "KeyMe", you only get one bug - the one that has the text "keyme" in one of the comments: https://landfill.bugzilla.org/bugzilla-3.2-branch/buglist.cgi?quicksearch=KeyMe The problem is that Quicksearch.pm (see lines 353-354) is lower casing the words specified in the quicksearch and then comparing them to what comes back from Bugzilla::Keyword->get_all(), and get_all() returns the keywords exactly as they were entered (i.e. mixed case). If the quicksearch/keyword mechanism is to work as the other keyword search mechanisms in Bugzilla (i.e. case insensitively), Quicksearch.pm needs to lower case the keywords that are returned from Bugzilla::Keyword->get_all() before comparing against them. I will attach a patch for this fix to this bug. Reproducible: Always
Patch for Bugzilla version 3.2 that was mentioned in description.
Version: unspecified → 3.2
Comment on attachment 358170 [details] [diff] [review] Fix for 3.2 quicksearch/keyword issue Let's put this patch in reviewers' radar.
Attachment #358170 - Flags: review?
Attachment #358170 - Flags: review? → review+
Comment on attachment 358170 [details] [diff] [review] Fix for 3.2 quicksearch/keyword issue Works fine. r=LpSolit
Assignee: query-and-buglist → kar
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: approval3.2+
Flags: approval+
Target Milestone: --- → Bugzilla 3.2
tip: Checking in Bugzilla/Search/Quicksearch.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Search/Quicksearch.pm,v <-- Quicksearch.pm new revision: 1.22; previous revision: 1.21 done 3.2.2: Checking in Bugzilla/Search/Quicksearch.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Search/Quicksearch.pm,v <-- Quicksearch.pm new revision: 1.20.2.2; previous revision: 1.20.2.1 done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: