Description
Hi All!
All search results are case sensitive for some reason. How to disable case dependence and search for a user regardless of capital letters in his mail or login.
Server Setup Information
Version of Rocket.Chat Server: 6.2.2
Operating System: RHEL 8
Deployment Method: Docker
Number of Running Instances: >20
DB Replicaset Oplog: -
NodeJS Version: 14.x
MongoDB Version: 5.*
Proxy: nginx
Firewalls involved:
Any additional Information
Example:
curl -s -G -H “X-Auth-Token: XXX” -H “X-User-Id: XXX” http://rc.instance.com:3001/api/v1/users.list --data-urlencode ‘query={“emails.address” : {“$regex” : “user@company.com”}}’ - NOT FOUND USER
curl -s -G -H “X-Auth-Token: XXX” -H “X-User-Id: XXX” http://rc.instance.com:3001/api/v1/users.list --data-urlencode ‘query={“emails.address” : {“$regex” : “User@company.com”}}’ - FOUND CORRECTLY
The same results with anothers APIs, for example user.info.
Thanks for any help!