You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When searching for files inside a chat room, the search input field does not sanitize or normalize the query string. This causes two distinct functional failures:
1.Untrimmed Spaces: Accidentally typing leading or trailing whitespaces results in an empty search state because the system treats the spaces as part of the literal filename.
2.Regex Evaluation Breakage: Special regular expression characters—specifically parentheses () commonly found in OS-duplicated files (e.g., file(1).pdf)—are not escaped.
Steps to reproduce:
Create a direct message room with another user.
Send files and videos to each other, some of the filename should have special character like parenthesis.
Search for files by clicking on the top right of the chatroom.
Try searching for a file with exact name but with leading or trailing white space. Also try searching for the file whose name has a parenthesis.
Expected behavior:
Expected behavior for the search functionality is to ignore the white space and then display the result. Also the parenthesis should be treated as a string and then they should display the required result.
Actual behavior:
For both searches the system returns empty results.
Description:
When searching for files inside a chat room, the search input field does not sanitize or normalize the query string. This causes two distinct functional failures:
1.Untrimmed Spaces: Accidentally typing leading or trailing whitespaces results in an empty search state because the system treats the spaces as part of the literal filename.
2.Regex Evaluation Breakage: Special regular expression characters—specifically parentheses () commonly found in OS-duplicated files (e.g., file(1).pdf)—are not escaped.
Steps to reproduce:
Expected behavior:
Expected behavior for the search functionality is to ignore the white space and then display the result. Also the parenthesis should be treated as a string and then they should display the required result.
Actual behavior:
For both searches the system returns empty results.
firstissue.mp4
Server Setup Information:
Client Setup Information