0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-06-01 18:28:56 +02:00
synapse/tests
Josh Qou d939120421
Fix unsafe hotserving behaviour for non-multimedia uploads. (#15680)
* Fix unsafe hotserving behaviour for non-multimedia uploads.

* invert disposition assert

* test_media_storage.py: run lint

* test_base.py: /inline/attachment/s

* Only return attachment for disposition type, update tests

* Update synapse/media/_base.py

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

* Update changelog.d/15680.bugfix

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

* add attribution

* Update changelog.

---------

Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
2023-06-15 14:23:27 +01:00
..
api N + 3: Read from column full_user_id rather than user_id of tables profiles and user_filters (#15649) 2023-06-02 17:24:13 -07:00
app Merge branch 'master' into develop 2023-05-26 17:16:15 +01:00
appservice Improve type hints for cached decorator. (#15658) 2023-05-24 12:59:31 +00:00
config Implement stable support for MSC3882 to allow an existing device/session to generate a login token for use on a new device/session (#15388) 2023-06-01 08:52:51 -04:00
crypto Modify StoreKeyFetcher to read from server_keys_json. (#15417) 2023-04-20 12:30:32 -04:00
events Replace EventContext fields prev_group and delta_ids with field state_group_deltas (#15233) 2023-06-13 13:22:06 -07:00
federation Rename blacklist/whitelist internally. (#15620) 2023-05-19 12:25:25 +00:00
handlers Clear event caches when we purge history (#15609) 2023-06-08 13:14:40 +01:00
http Revert "Allow for the configuration of max request retries and min/max retry delays in the matrix federation client (#12504)" 2023-06-14 11:55:57 +02:00
logging Trace functions which return Awaitable (#15650) 2023-06-06 17:39:22 -05:00
media Fix unsafe hotserving behaviour for non-multimedia uploads. (#15680) 2023-06-15 14:23:27 +01:00
metrics Add missing type hints to tests. (#14687) 2022-12-28 08:29:35 -05:00
module_api N + 3: Read from column full_user_id rather than user_id of tables profiles and user_filters (#15649) 2023-06-02 17:24:13 -07:00
push Stabilize support for MSC3952: Intentional mentions. (#15520) 2023-06-06 09:11:07 +01:00
replication Merge branch 'master' into develop 2023-05-26 17:16:15 +01:00
rest Clear event caches when we purge history (#15609) 2023-06-08 13:14:40 +01:00
scripts Add more missing type hints to tests. (#15028) 2023-02-08 16:29:49 -05:00
server_notices Bump black from 22.12.0 to 23.1.0 (#15103) 2023-02-22 15:29:09 -05:00
state Fix typechecks against twisted trunk (#13061) 2022-06-15 11:49:58 +01:00
storage Prefill events after invalidate not before when persisting events (#15758) 2023-06-14 09:42:18 +01:00
test_utils Log when events are (unexpectedly) filtered out of responses in tests (#14213) 2023-06-01 21:27:18 -05:00
types Use immutabledict instead of frozendict (#15113) 2023-03-22 17:15:34 +00:00
util Add type hints to test_descriptors. (#15659) 2023-05-24 14:18:52 +00:00
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
server.py Add stricter mypy options (#15694) 2023-05-31 07:18:29 -04:00
test_distributor.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_event_auth.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_federation.py Remove legacy code of single user device resync api (#15418) 2023-04-21 12:06:39 +01:00
test_mau.py Bump black from 22.12.0 to 23.1.0 (#15103) 2023-02-22 15:29:09 -05:00
test_phone_home.py Add final type hint to tests.unittest. (#15072) 2023-02-14 14:03:35 -05:00
test_rust.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_server.py Add Synapse-Trace-Id to access-control-expose-headers header (#14974) 2023-03-20 11:14:05 -07:00
test_state.py Replace EventContext fields prev_group and delta_ids with field state_group_deltas (#15233) 2023-06-13 13:22:06 -07:00
test_terms_auth.py Proper types for tests.test_terms_auth (#15007) 2023-02-07 12:03:39 +00:00
test_test_utils.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_types.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_visibility.py Refactor filter_events_for_server (#15240) 2023-03-10 15:31:25 +00:00
unittest.py Limit the size of the HomeServerConfig cache in trial test runs (#15646) 2023-05-22 13:25:39 +01:00
utils.py Modify StoreKeyFetcher to read from server_keys_json. (#15417) 2023-04-20 12:30:32 -04:00