synapse/tests/handlers
Eric Eastwood db6e7f15ea
Fix backfilled events being rejected for no state_groups (#10439)
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
```
2021-07-29 09:46:51 +01:00
..
__init__.py
oidc_test_key.p8 JWT OIDC secrets for Sign in with Apple (#9549) 2021-03-09 15:03:37 +00:00
oidc_test_key.pub.pem JWT OIDC secrets for Sign in with Apple (#9549) 2021-03-09 15:03:37 +00:00
test_admin.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_appservice.py update black to 21.6b0 (#10197) 2021-06-17 15:20:06 +01:00
test_auth.py Change the format of access tokens away from macaroons (#5588) 2021-05-12 15:04:51 +01:00
test_cas.py Rename handler and config modules which end in handler/config. (#9816) 2021-04-20 14:55:20 -04:00
test_device.py MSC2918 Refresh tokens implementation (#9450) 2021-06-24 14:33:20 +01:00
test_directory.py update black to 21.6b0 (#10197) 2021-06-17 15:20:06 +01:00
test_e2e_keys.py Always communicate device OTK counts to clients (#10485) 2021-07-27 14:36:38 +01:00
test_e2e_room_keys.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_federation.py Fix backfilled events being rejected for no state_groups (#10439) 2021-07-29 09:46:51 +01:00
test_message.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_oidc.py Rename handler and config modules which end in handler/config. (#9816) 2021-04-20 14:55:20 -04:00
test_password_providers.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_presence.py Move methods involving event authentication to EventAuthHandler. (#10268) 2021-07-01 14:25:37 -04:00
test_profile.py [pyupgrade] tests/ (#10347) 2021-07-13 11:43:15 +01:00
test_receipts.py Support for MSC2285 (hidden read receipts) (#10413) 2021-07-28 10:05:11 +02:00
test_register.py Synapse 1.37.0rc1 (2021-06-24) 2021-06-24 11:20:28 +01:00
test_saml.py Use mock from the stdlib. (#9772) 2021-04-09 13:44:38 -04:00
test_space_summary.py Show all joinable rooms in the spaces summary. (#10298) 2021-07-13 08:59:27 -04:00
test_stats.py Remove functionality associated with unused historical stats tables (#9721) 2021-07-08 16:57:13 +01:00
test_sync.py update black to 21.6b0 (#10197) 2021-06-17 15:20:06 +01:00
test_typing.py Ignore EDUs for rooms we're not in (#10317) 2021-07-06 14:31:13 +01:00
test_user_directory.py Standardise the module interface (#10062) 2021-06-18 12:15:52 +01:00