Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Exclude rejected state events when calculating state at backwards extrems #6527

Merged
merged 2 commits into from
Dec 16, 2019

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Dec 11, 2019

This fixes a weird bug where, if you were determined enough, you could end up with a rejected event forming part of the state at a backwards-extremity. Authing that backwards extrem would then lead to us trying to pull the rejected event from the db (with allow_rejected=False), which would fail with a 404.

Based on #6526.

@richvdh richvdh requested a review from a team December 11, 2019 18:01
@richvdh richvdh force-pushed the rav/event_auth/17 branch 2 times, most recently from 80a5911 to e0323d3 Compare December 12, 2019 13:00
@richvdh richvdh merged commit 6920d88 into develop Dec 16, 2019
@richvdh richvdh deleted the rav/event_auth/17 branch December 16, 2019 13:14
richvdh added a commit that referenced this pull request Dec 16, 2019
…rems (#6527)

This fixes a weird bug where, if you were determined enough, you could end up with a rejected event forming part of the state at a backwards-extremity. Authing that backwards extrem would then lead to us trying to pull the rejected event from the db (with allow_rejected=False), which would fail with a 404.
richvdh added a commit that referenced this pull request Dec 18, 2019
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))
babolivier pushed a commit that referenced this pull request Sep 1, 2021
…rems (#6527)

* commit '6920d8889':
  Exclude rejected state events when calculating state at backwards extrems (#6527)
babolivier pushed a commit that referenced this pull request Sep 1, 2021
…rems (#6527)

* commit 'bbb75ff6e':
  Exclude rejected state events when calculating state at backwards extrems (#6527)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants