This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix backfilled events being rejected for no state_groups
#10439
Merged
erikjohnston
merged 17 commits into
develop
from
madlittlemods/fix-context-from-being-wrecked-when-backfilling
Jul 29, 2021
Merged
Fix backfilled events being rejected for no state_groups
#10439
erikjohnston
merged 17 commits into
develop
from
madlittlemods/fix-context-from-being-wrecked-when-backfilling
Jul 29, 2021
Commits on Jul 21, 2021
-
Fix backfilled events being rejected for none state_groups
Reproducible on a federated homeserver when there is a membership auth event as a floating outlier. Then when we try to backfill one of that persons messages, it has missing membership auth to fetch which caused us to mistakenly replace the `context` for the message with that of the floating membership `outlier` event. Since `outliers` have no `state` or `state_group`, the error bubbles up when we continue down the persisting route: `sqlite3.IntegrityError: NOT NULL constraint failed: event_to_state_groups.state_group` Call stack: ``` backfill _auth_and_persist_event _check_event_auth _update_auth_events_and_context_for_auth ```
Configuration menu - View commit details
-
Copy full SHA for 2db287e - Browse repository at this point
Copy the full SHA 2db287eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 28a5e6a - Browse repository at this point
Copy the full SHA 28a5e6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 64c8e5e - Browse repository at this point
Copy the full SHA 64c8e5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for e9f3e9d - Browse repository at this point
Copy the full SHA e9f3e9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 487247f - Browse repository at this point
Copy the full SHA 487247fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b1ce3af - Browse repository at this point
Copy the full SHA b1ce3afView commit details -
Configuration menu - View commit details
-
Copy full SHA for 005382f - Browse repository at this point
Copy the full SHA 005382fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 87b7fb9 - Browse repository at this point
Copy the full SHA 87b7fb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for a94217e - Browse repository at this point
Copy the full SHA a94217eView commit details -
Configuration menu - View commit details
-
Copy full SHA for b2e26b9 - Browse repository at this point
Copy the full SHA b2e26b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0886f8 - Browse repository at this point
Copy the full SHA b0886f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb32018 - Browse repository at this point
Copy the full SHA eb32018View commit details -
Merge remote-tracking branch 'origin/develop' into madlittlemods/fix-…
…context-from-being-wrecked-when-backfilling
Configuration menu - View commit details
-
Copy full SHA for 1e97096 - Browse repository at this point
Copy the full SHA 1e97096View commit details
Commits on Jul 28, 2021
-
Merge branch 'develop' into madlittlemods/fix-context-from-being-wrec…
…ked-when-backfilling
Configuration menu - View commit details
-
Copy full SHA for 3ca36c9 - Browse repository at this point
Copy the full SHA 3ca36c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 16b113b - Browse repository at this point
Copy the full SHA 16b113bView commit details -
Configuration menu - View commit details
-
Copy full SHA for a89a95f - Browse repository at this point
Copy the full SHA a89a95fView commit details -
Merge branch 'develop' into madlittlemods/fix-context-from-being-wrec…
…ked-when-backfilling
Configuration menu - View commit details
-
Copy full SHA for 287b32c - Browse repository at this point
Copy the full SHA 287b32cView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.