mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #59105
[Bug 1841571] Re: usersearch doesn´t work with multibyte-characters on SolarisOS
This is actually not only a problem in SolarisOS. I could replicate on
master in my local instance in Ubuntu 16.04 using a postgres DB.
The fix proposed here works for Elastic Search, I suppose they have this
type of search set up on the site.
But this is also happening when using internal search, so we need to fix
the other half of the problem as well.
Testing
This affects the user search (admin section user search and group user
search)
The steps I followed for Elastic Search:
- Set up elasticsearch
- Create a user with first name: PINGÜINO, last name: Person
- might need to wait for the cron to index the changes, or run the cron manually lib/cron.php
- Go to Admin menu->People->People search
- Search for PINGÜINO
Expected result: The user is listed in the results
Actual restult: the user is not listed in the results
After changing the function from strtolower to mb_strtolower on
searchlib.php file, the issue is fixed for elasticsearch.
The steps I followed for internal search:
- In Site options -> search settings change the search plugin to internal and save
- Go to Admin menu->People->People search
- Search for PINGÜINO
Expected result: The user is listed in the results
Actual restult: the user is not listed in the results
The tests are similar for group search.
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1841571
Title:
usersearch doesn´t work with multibyte-characters on SolarisOS
Status in Mahara:
In Progress
Bug description:
Mahara 18.04.0, 18.04.2 and 19.04.0
OS: Solaris 10
Postgres-database
Browser: Chrome 76, Firefox 60.7.0
The User-Search doesn´t work with Multibyte-Characters (like ä, ö, ü,
ß) within the searchterm under Solaris 10 Operating System.
Solution is to change the strtolower()-funtion to mb_strtolower() in
the searchlib.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1841571/+subscriptions
References