/sync
fails with SynapseError: 404 - Could not find event
if the last event is a redaction of an event that we don't have #12864
Description
Hello,
we noticed a strange login behaviour that only happens to some of our users:
When trying to log in (SAML) they got an 404 error after the SAML Authentication is allready completed (and the verification should start)
There are warnings to cachebuster GET requests in my synapse log:
2022-05-24 12:35:33,568 - synapse.http.server - 723 - WARNING - GET-125345 - Not sending response to request <XForwardedForRequest at 0x7fe7c3c40d00 method='GET' uri='/_matrix/client/r0/sync?filter=0&timeout=0&_cacheBuster=1653395733090' clientproto='HTTP/1.0' site='8008'>, already disconnected.
Sadly I could not find the coresponding one.
We have updated synapse more than once during the last weeks but since existing sessions reconnect without login its impossible to say, since when this happens. Most of the users can login fine. The problem occurs with Element Web, Desktop and Android App (all newest version.