diff options
author | Erik Johnston <erik@matrix.org> | 2018-09-13 15:33:16 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-09-13 15:44:12 +0100 |
commit | 89a76d18898a0172010c25e5a7c66d57c16b9196 (patch) | |
tree | 030ab431c73868185687a09cf464453713846e45 | |
parent | Attempt to figure out what's going on with timeouts (#3857) (diff) | |
download | synapse-89a76d18898a0172010c25e5a7c66d57c16b9196.tar.xz |
Fix handling of redacted events from federation
If we receive an event that doesn't pass their content hash check (e.g. due to already being redacted) then we hit a bug which causes an exception to be raised, which then promplty stops the event (and request) from being processed. This effects all sorts of federation APIs, including joining rooms with a redacted state event.
-rw-r--r-- | synapse/events/__init__.py | 5 | ||||
-rw-r--r-- | synapse/federation/federation_base.py | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/synapse/events/__init__.py b/synapse/events/__init__.py |