synapse-product/synapse
Andrew Morgan a64c29926e
Pass a dict, instead of None, to modules if a None config is specified in the homeserver config (#9229)
If a Synapse module's config block were empty in YAML, thus being translated to a `Nonetype` in Python, then some modules could fail as that None ends up getting passed to their `parse_config` method. Modules are expected to accept a `dict` instead.

This PR ensures that if the user does end up specifying an empty config block (such as what [the default oidc config in the sample config](5310808d3b/docs/sample_config.yaml (L1816-L1845)) states) then `None` is not passed to the module. An empty dict is passed instead.

This code assumes that no existing modules are relying on receiving a `None` config block, but I'd really hope that they aren't.
2021-01-27 11:49:31 +00:00
..
_scripts Strip trailing / from server_url in register_new_matrix_user (#8823) 2020-11-26 10:57:26 +00:00
api Give public_baseurl a default value (#9159) 2021-01-20 12:30:41 +00:00
app Allow moving account data and receipts streams off master (#9104) 2021-01-18 15:47:59 +00:00
appservice Tie together matches_user_in_member_list and get_users_in_room caches (#8676) 2020-10-30 15:23:16 +00:00
config Do not require the CAS service URL setting (use public_baseurl instead). (#9199) 2021-01-26 10:49:25 -05:00
crypto Add type hints to the crypto module. (#8999) 2021-01-04 10:04:50 -05:00
events Remote dependency on distutils (#9125) 2021-01-15 15:59:20 +00:00
federation Precompute joined hosts and store in Redis (#9198) 2021-01-26 13:57:31 +00:00
groups Fix typos and spelling errors. (#8639) 2020-10-23 12:38:40 -04:00
handlers Add type hints to various handlers. (#9223) 2021-01-26 10:50:21 -05:00
http Support icons for Identity Providers (#9154) 2021-01-20 08:15:14 -05:00
logging Add type hints to the logging context code. (#8939) 2021-01-05 08:06:55 -05:00
metrics Various clean-ups to the logging context code (#8935) 2020-12-14 14:19:47 -05:00
module_api Add admin API for logging in as a user (#8617) 2020-11-17 10:51:25 +00:00
push Handle missing content keys when calculating presentable names. (#9165) 2021-01-25 07:27:16 -05:00
replication Precompute joined hosts and store in Redis (#9198) 2021-01-26 13:57:31 +00:00
res Support icons for Identity Providers (#9154) 2021-01-20 08:15:14 -05:00
rest Try to recover from unknown encodings when previewing media. (#9164) 2021-01-26 07:32:17 -05:00
server_notices Use the account handler in additional places. (#9166) 2021-01-20 10:44:52 +00:00
spam_checker_api Combine SpamCheckerApi with the more generic ModuleApi. (#8464) 2020-10-07 12:03:26 +01:00
state Precompute joined hosts and store in Redis (#9198) 2021-01-26 13:57:31 +00:00
static Add initial support for a "pick your IdP" page (#9017) 2021-01-05 11:25:28 +00:00
storage Add type hints to various handlers. (#9223) 2021-01-26 10:50:21 -05:00
streams Make token serializing/deserializing async (#8427) 2020-09-30 20:29:19 +01:00
util Pass a dict, instead of None, to modules if a None config is specified in the homeserver config (#9229) 2021-01-27 11:49:31 +00:00
__init__.py 1.26.0rc2 2021-01-25 08:25:40 -05:00
event_auth.py Ensure that event.redacts is the proper type before handling it (#8457) 2020-10-05 10:24:17 -04:00
notifier.py Fix "Starting metrics collection from sentinel context" errors (#9053) 2021-01-08 14:33:53 +00:00
python_dependencies.py Bump psycopg2 version (#9204) 2021-01-22 11:14:49 +00:00
secrets.py Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
server.py Precompute joined hosts and store in Redis (#9198) 2021-01-26 13:57:31 +00:00
types.py Support icons for Identity Providers (#9154) 2021-01-20 08:15:14 -05:00
visibility.py Try and drop stale extremities. (#8929) 2020-12-18 09:49:18 +00:00