0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 21:23:50 +01:00
synapse/tests
Hillery Shay f78b68a96b
Treat "\u0000" as "\u0020" for the purposes of message search (message indexing) (#10820)
* add test to check if null code points are being inserted

* add logic to detect and replace null code points before insertion into db

* lints

* add license to test

* change approach to null substitution

* add type hint for SearchEntry

* Add changelog entry

Signed-off-by: H.Shay <shaysquared@gmail.com>

* updated changelog

* update chanelog message

* remove duplicate changelog

* Update synapse/storage/databases/main/events.py remove extra space

Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>

* rename and move test file, update tests, delete old test file

* fix typo in comments

* update _find_highlights_in_postgres to replace null byte with space

* replace null byte in sqlite search insertion

* beef up and reorganize test for this pr

* update changelog

* add type hints and update docstring

* check db engine directly vs using env variable

* refactor tests to be less repetetive

* move rplace logic into seperate function

* requested changes

* Fix typo.

* Update synapse/storage/databases/main/search.py

Co-authored-by: reivilibre <olivier@librepush.net>

* Update changelog.d/10820.misc

Co-authored-by: Aaron Raimist <aaron@raim.ist>

Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
Co-authored-by: reivilibre <olivier@librepush.net>
Co-authored-by: Aaron Raimist <aaron@raim.ist>
2021-09-22 08:25:26 -07:00
..
api MSC2918 Refresh tokens implementation (#9450) 2021-06-24 14:33:20 +01:00
app Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
appservice Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
config Add config option to use non-default manhole password and keys (#10643) 2021-09-06 16:08:03 +01:00
crypto Rewrite the KeyRing (#10035) 2021-06-02 16:37:59 +01:00
events Support MSC3375: room version 9. (#10747) 2021-09-03 12:51:15 -04:00
federation Split FederationHandler in half (#10692) 2021-08-26 21:41:44 +01:00
handlers Add type hints for event streams. (#10856) 2021-09-21 13:34:26 -04:00
http support federation queries through http connect proxy (#10475) 2021-08-11 15:34:59 +01:00
logging Merge branch 'master' into develop 2021-04-20 14:55:16 +01:00
module_api Extend ModuleApi with the methods we'll need to reject spam based on …IP - resolves #10832 (#10833) 2021-09-22 13:09:43 +00:00
push Synapse 1.42.0rc1 (2021-09-01) 2021-09-01 14:58:14 +01:00
replication Create a constant for a small png image in tests. (#10834) 2021-09-16 12:01:14 -04:00
rest Include more information in oEmbed previews. (#10819) 2021-09-22 09:45:20 -04:00
scripts Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
server_notices Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
state Update the MSC3083 support to verify if joins are from an authorized server. (#10254) 2021-07-26 12:17:00 -04:00
storage Treat "\u0000" as "\u0020" for the purposes of message search (message indexing) (#10820) 2021-09-22 08:25:26 -07:00
test_utils Create a constant for a small png image in tests. (#10834) 2021-09-16 12:01:14 -04:00
util Use inline type hints in tests/ (#10350) 2021-07-13 11:52:58 +01:00
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
server.py Fix incompatibility with Twisted < 21. (#10713) 2021-08-27 16:33:41 +01:00
test_distributor.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_event_auth.py Support MSC3289: Room version 8 (#10449) 2021-08-09 10:46:39 +02:00
test_federation.py Get rid of _auth_and_persist_event (#10781) 2021-09-08 19:03:08 +01:00
test_mau.py Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
test_metrics.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_phone_home.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_preview.py Support underscores (in addition to hyphens) for charset detection. (#10410) 2021-07-27 17:29:42 +00:00
test_server.py Improved validation for received requests (#9817) 2021-04-23 19:20:44 +01:00
test_state.py Add a module type for account validity (#9884) 2021-07-16 18:11:53 +02:00
test_terms_auth.py Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
test_test_utils.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_types.py [pyupgrade] tests/ (#10347) 2021-07-13 11:43:15 +01:00
test_visibility.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
unittest.py Add types to synapse.util. (#10601) 2021-09-10 17:03:18 +01:00
utils.py Allow setting transaction limit for db connections (#10440) 2021-08-02 13:24:43 +00:00