Closed
Bug 284599
Opened 20 years ago
Closed 20 years ago
Use of REGEXP search is not consistent wrt case sensitivity
Categories
(Bugzilla :: Bugzilla-General, defect)
Bugzilla
Bugzilla-General
Tracking
()
RESOLVED
FIXED
Bugzilla 2.20
People
(Reporter: Tomas.Kopal, Assigned: Tomas.Kopal)
Details
Attachments
(1 file)
|
2.80 KB,
patch
|
mkanat
:
review+
|
Details | Diff | Splinter Review |
We use regular expression search on couple of places in Search.pm. Most of the occurences has LOWER function called on the column, supposedly to perform case insesitive search, but the parameter is passed in as it is, so we'll never match expression with upper case letters. As MySQL regexp is (as of 3.23.4) case insensitive, it does not matter, but it does matter for other DBs. If we really want case insensitive regexp, then we can remove the LOWER call and we should also change Pg implementation to use case insensitive regexp.
Updated•20 years ago
|
Target Milestone: --- → Bugzilla 2.20
| Assignee | ||
Updated•20 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 1•20 years ago
|
||
Regexp is now case-insensitive on both supported DBs.
| Assignee | ||
Updated•20 years ago
|
Attachment #181038 -
Flags: review?(mkanat)
Comment 2•20 years ago
|
||
Comment on attachment 181038 [details] [diff] [review] V1 Yes, this looks correct. HOWEVER, for the future: both MySQL and PostgreSQL do not deal well with multi-byte strings in regexes, particularly not for case-insensitive things. PostgreSQL does not correctly "lowercase" things outside of ISO-8859-1. For MySQL, the regex operator is not multi-byte safe at all. These are things we can deal with at another time, though. I suspect that the indexing of these things doesn't matter one way or another, as the regex operators probably don't use indexes anyhow.
Attachment #181038 -
Flags: review?(mkanat) → review+
Updated•20 years ago
|
Flags: approval?
Summary: Use of REGEXP search is not consisten wrt case sensitivity → Use of REGEXP search is not consistent wrt case sensitivity
Updated•20 years ago
|
Flags: approval? → approval+
Comment 3•20 years ago
|
||
Checking in Bugzilla/DB.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/DB.pm,v <-- DB.pm new revision: 1.51; previous revision: 1.50 done Checking in Bugzilla/Search.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Search.pm,v <-- Search.pm new revision: 1.95; previous revision: 1.94 done Checking in Bugzilla/DB/Pg.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/DB/Pg.pm,v <-- Pg.pm new revision: 1.8; previous revision: 1.7 done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•