synapse/tests
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
..
api MSC2918 Refresh tokens implementation (#9450) 2021-06-24 14:33:20 +01:00
app Add a new version of the R30 phone-home metric, which removes a false impression of retention given by the old R30 metric (#10332) 2021-07-19 16:11:34 +01:00
appservice Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
config [pyupgrade] `tests/` (#10347) 2021-07-13 11:43:15 +01:00
crypto Rewrite the KeyRing (#10035) 2021-06-02 16:37:59 +01:00
events Restricted rooms (MSC3083) should not have their allow key redacted. (#10489) 2021-07-28 07:03:01 -04:00
federation Return errors from `send_join` etc if the event is rejected (#10243) 2021-06-24 16:00:08 +01:00
handlers Fix backfilled events being rejected for no `state_groups` (#10439) 2021-07-29 09:46:51 +01:00
http allow specifying https:// proxy (#10411) 2021-07-27 17:31:06 +01:00
logging Merge branch 'master' into develop 2021-04-20 14:55:16 +01:00
module_api Use inline type hints in `tests/` (#10350) 2021-07-13 11:52:58 +01:00
push Merge pull request from GHSA-x345-32rc-8h85 2021-05-11 11:47:23 +02:00
replication Use inline type hints in `tests/` (#10350) 2021-07-13 11:52:58 +01:00
rest Support for MSC2285 (hidden read receipts) (#10413) 2021-07-28 10:05:11 +02:00
scripts Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
server_notices Re-introduce "Leave out optional keys from /sync" change (#10214) 2021-06-23 15:57:41 +01:00
state Update the MSC3083 support to verify if joins are from an authorized server. (#10254) 2021-07-26 12:17:00 -04:00
storage Update the MSC3083 support to verify if joins are from an authorized server. (#10254) 2021-07-26 12:17:00 -04:00
test_utils Use inline type hints in `tests/` (#10350) 2021-07-13 11:52:58 +01:00
util Use inline type hints in `tests/` (#10350) 2021-07-13 11:52:58 +01:00
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
server.py Use inline type hints in `tests/` (#10350) 2021-07-13 11:52:58 +01:00
test_distributor.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_event_auth.py Update the MSC3083 support to verify if joins are from an authorized server. (#10254) 2021-07-26 12:17:00 -04:00
test_federation.py Merge branch 'master' into develop 2021-04-20 14:55:16 +01:00
test_mau.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_metrics.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_phone_home.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_preview.py Support underscores (in addition to hyphens) for charset detection. (#10410) 2021-07-27 17:29:42 +00:00
test_server.py Improved validation for received requests (#9817) 2021-04-23 19:20:44 +01:00
test_state.py Add a module type for account validity (#9884) 2021-07-16 18:11:53 +02:00
test_terms_auth.py Use mock from the stdlib. (#9772) 2021-04-09 13:44:38 -04:00
test_test_utils.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_types.py [pyupgrade] `tests/` (#10347) 2021-07-13 11:43:15 +01:00
test_visibility.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
unittest.py Add a new version of the R30 phone-home metric, which removes a false impression of retention given by the old R30 metric (#10332) 2021-07-19 16:11:34 +01:00
utils.py Remove room and user invite ratelimits in default unit test config (#9871) 2021-04-23 13:37:48 +01:00