-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Conversation
Previously we tried to be clever and filter out some unnecessary event IDs to keep the auth chain small, but that had some annoying interactions with state res v2 so we stop doing that for now.
b24a5e1
to
5aed4e9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems plausible modulo the below.
needs to target the release branch?
@@ -513,69 +508,38 @@ def is_server_admin(self, user): | |||
""" | |||
return self.store.is_server_admin(user) | |||
|
|||
@defer.inlineCallbacks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
turning this from a deferred-returning function to an immediate one without updating the call sites feels like it might bite us later? Better to return defer.suceed()
or add a yield defer.succeed()
?
Not that bothered though. We'll probably catch it when we update the call sites...
changelog.d/6556.bugfix
Outdated
@@ -0,0 +1 @@ | |||
Fix a cause of state resets in v5. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v5 of what?
Itym room version 2 and onwards.
Previously we tried to be clever and filter out some unnecessary event IDs to keep the auth chain small, but that had some annoying interactions with state res v2 so we stop doing that for now.
Synapse 1.7.1 (2019-12-18) ========================== This release includes several security fixes as well as a fix to a bug exposed by the security fixes. Administrators are encouraged to upgrade as soon as possible. Security updates ---------------- - Fix a bug which could cause room events to be incorrectly authorized using events from a different room. ([\#6501](#6501), [\#6503](#6503), [\#6521](#6521), [\#6524](#6524), [\#6530](#6530), [\#6531](#6531)) - Fix a bug causing responses to the `/context` client endpoint to not use the pruned version of the event. ([\#6553](#6553)) - Fix a cause of state resets in room versions 2 onwards. ([\#6556](#6556), [\#6560](#6560)) Bugfixes -------- - Fix a bug which could cause the federation server to incorrectly return errors when handling certain obscure event graphs. ([\#6526](#6526), [\#6527](#6527))
* commit '3fbe5b7ec': Add auth events as per spec. (#6556)
* commit '5ca2cfadc': Add auth events as per spec. (#6556)
Previously we tried to be clever and filter out some unnecessary event
IDs to keep the auth chain small, but that had some annoying
interactions with state res v2 so we stop doing that for now.
Fixes #6520