MatrixSynapse/tests
Denis Kasak 337f38cac3
Implement a content type allow list for URL previews (#11936)
This implements an allow list for content types for which Synapse will attempt URL preview. If a URL resolves to a resource with a content type which isn't in the list, the download will terminate immediately.

This makes sense given that Synapse would never successfully generate a URL preview for such files in the first place, and helps prevent issues with streaming media servers, such as #8302.

Signed-off-by: Denis Kasak dkasak@termina.org.uk
2022-02-10 15:43:01 +00:00
..
api
app
appservice Remove optional state of `ApplicationService.is_interested`'s `store` parameter (#11911) 2022-02-07 18:26:42 +00:00
config
crypto
events
federation
handlers Add a callback to allow modules to deny 3PID (#11854) 2022-02-08 11:20:32 +01:00
http Remove support for the webclient listener. (#11895) 2022-02-03 18:36:49 +00:00
logging Fixes for opentracing scopes (#11869) 2022-02-02 22:41:57 +00:00
module_api
push
replication Add missing type hints to synapse.replication. (#11938) 2022-02-08 11:03:08 -05:00
rest Implement a content type allow list for URL previews (#11936) 2022-02-10 15:43:01 +00:00
scripts
server_notices
state
storage Expose the registered device ID from the `register_appservice_user` test helper. (#11615) 2022-02-02 09:59:55 +00:00
test_utils
util
__init__.py
server.py Support rendering previews with data: URLs in them (#11767) 2022-01-24 08:58:18 -05:00
test_distributor.py
test_event_auth.py
test_federation.py
test_mau.py
test_metrics.py
test_phone_home.py
test_server.py
test_state.py
test_terms_auth.py
test_test_utils.py
test_types.py
test_visibility.py
unittest.py Expose the registered device ID from the `register_appservice_user` test helper. (#11615) 2022-02-02 09:59:55 +00:00
utils.py