anonymousland-synapse/synapse
Richard van der Hoff 79dadf7216
Fix 404 on /sync when the last event is a redaction of an unknown/purged event (#12905)
Currently, we try to pull the event corresponding to a sync token from the database. However, when
we fetch redaction events, we check the target of that redaction (because we aren't allowed to send
redactions to clients without validating them). So, if the sync token points to a redaction of an event
that we don't have, we have a problem.

It turns out we don't really need that event, and can just work with its ID and metadata, which
sidesteps the whole problem.
2022-06-01 11:29:51 +00:00
..
_scripts Remove most groups datastore code. (#12895) 2022-05-31 20:28:17 -04:00
api Fix M_USER_ACCOUNT_SUSPENDED error code for spec compliance (#12923) 2022-05-31 08:42:18 +01:00
app Remove groups replication code. (#12900) 2022-05-31 13:04:08 -04:00
appservice Remove backing code for groups/communities (#12558) 2022-05-26 09:04:34 -04:00
config Add config options for media retention (#12732) 2022-05-31 16:35:29 +00:00
crypto Bump black and click versions (#12320) 2022-04-05 11:04:28 +01:00
events Merge branch 'master' into develop 2022-05-31 14:48:22 +01:00
federation Improve logging when signature checks fail (#12925) 2022-05-31 23:32:56 +01:00
handlers Fix 404 on /sync when the last event is a redaction of an unknown/purged event (#12905) 2022-06-01 11:29:51 +00:00
http Synapse 1.60.0rc2 (2022-05-27) 2022-05-27 12:07:18 +01:00
logging Easy type hints in synapse.logging.opentracing (#12894) 2022-05-27 11:17:33 +01:00
metrics Easy type hints in synapse.logging.opentracing (#12894) 2022-05-27 11:17:33 +01:00
module_api Merge branch 'master' into develop 2022-05-31 14:48:22 +01:00
push Rename storage classes (#12913) 2022-05-31 12:17:50 +00:00
replication Remove groups replication code. (#12900) 2022-05-31 13:04:08 -04:00
res Fix Jinja templating error when generating thumbnail URLs. (#12510) 2022-04-20 12:03:03 -04:00
rest Fix potential thumbnail memory leaks. (#12932) 2022-06-01 10:57:49 +00:00
server_notices Add StreamKeyType class and replace string literals with constants (#12567) 2022-05-16 15:35:31 +00:00
spam_checker_api Fix import in module_api module and docs on the new check_event_for_spam signature (#12918) 2022-05-31 12:04:53 +02:00
state Rename storage classes (#12913) 2022-05-31 12:17:50 +00:00
static Display an error page during failure of fallback UIA. (#10561) 2021-08-18 08:13:35 -04:00
storage Fix 404 on /sync when the last event is a redaction of an unknown/purged event (#12905) 2022-06-01 11:29:51 +00:00
streams Rework stream token to stop caring about groups. (#12897) 2022-05-31 07:42:50 -04:00
util Fix caching behavior for relations push rules. (#12859) 2022-05-25 07:49:54 -04:00
__init__.py Dump setuptools; correct pyproject version number (#12478) 2022-04-20 17:33:20 +01:00
event_auth.py Add a new room version for MSC3787's knock+restricted join rule (#12623) 2022-05-17 10:41:39 +00:00
notifier.py Rename storage classes (#12913) 2022-05-31 12:17:50 +00:00
py.typed Mark Module API error imports as re-exported and mark Synapse as containing type annotations (#11054) 2021-10-13 08:42:41 +01:00
server.py Rename storage classes (#12913) 2022-05-31 12:17:50 +00:00
types.py Rework stream token to stop caring about groups. (#12897) 2022-05-31 07:42:50 -04:00
visibility.py Fix 404 on /sync when the last event is a redaction of an unknown/purged event (#12905) 2022-06-01 11:29:51 +00:00