Closed
Bug 474779
Opened 17 years ago
Closed 17 years ago
Quicksearch cannot find mixed/upper case keywords
Categories
(Bugzilla :: Query/Bug List, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.2
People
(Reporter: mrbball, Assigned: mrbball)
Details
Attachments
(1 file)
|
743 bytes,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
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
| Assignee | ||
Comment 1•17 years ago
|
||
Patch for Bugzilla version 3.2 that was mentioned in description.
| Assignee | ||
Updated•17 years ago
|
Version: unspecified → 3.2
Comment 2•17 years ago
|
||
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?
Updated•17 years ago
|
Attachment #358170 -
Flags: review? → review+
Comment 3•17 years ago
|
||
Comment on attachment 358170 [details] [diff] [review]
Fix for 3.2 quicksearch/keyword issue
Works fine. r=LpSolit
Updated•17 years ago
|
Assignee: query-and-buglist → kar
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: approval3.2+
Flags: approval+
Target Milestone: --- → Bugzilla 3.2
Comment 4•17 years ago
|
||
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.
Description
•