mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-07 21:44:57 -04:00
Fix a bug introduced in Synapse v1.74.0 where searching with colons when using ICU for search term tokenisation would fail with an error. (#15079)
Co-authored-by: David Robertson <davidr@element.io>
This commit is contained in:
parent
7ee7f49316
commit
1cbc3f197c
4 changed files with 90 additions and 5 deletions
|
@ -192,6 +192,13 @@ class UserDirectoryTestCase(unittest.HomeserverTestCase):
|
|||
self.helper.join(room, self.appservice.sender, tok=self.appservice.token)
|
||||
self._check_only_one_user_in_directory(user, room)
|
||||
|
||||
def test_search_term_with_colon_in_it_does_not_raise(self) -> None:
|
||||
"""
|
||||
Regression test: Test that search terms with colons in them are acceptable.
|
||||
"""
|
||||
u1 = self.register_user("user1", "pass")
|
||||
self.get_success(self.handler.search_users(u1, "haha:paamayim-nekudotayim", 10))
|
||||
|
||||
def test_user_not_in_users_table(self) -> None:
|
||||
"""Unclear how it happens, but on matrix.org we've seen join events
|
||||
for users who aren't in the users table. Test that we don't fall over
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue