dendrite/federationapi/routing
Kegsay 18231f25b4
Implement rejected events (#1426)
* WIP Event rejection

* Still send back errors for rejected events

Instead, discard them at the federationapi /send layer rather than
re-implementing checks at the clientapi/PerformJoin layer.

* Implement rejected events

Critically, rejected events CAN cause state resolution to happen
as it can merge forks in the DAG. This is fine, _provided_ we
do not add the rejected event when performing state resolution,
which is what this PR does. It also fixes the error handling
when NotAllowed happens, as we were checking too early and needlessly
handling NotAllowed in more than one place.

* Update test to match reality

* Modify InputRoomEvents to no longer return an error

Errors do not serialise across HTTP boundaries in polylith mode,
so instead set fields on the InputRoomEventsResponse. Add `Err()`
function to make the API shape basically the same.

* Remove redundant returns; linting

* Update blacklist
2020-09-16 13:00:52 +01:00
..
backfill.go Configuration format v1 (#1230) 2020-08-10 14:18:04 +01:00
devices.go Fix response format for federation /devices requests 2020-08-04 12:02:13 +01:00
eventauth.go Consolidation of roomserver APIs (#994) 2020-05-01 10:48:17 +01:00
events.go Fix room checks for /state and /state_ids (#1155) 2020-06-23 11:47:48 +01:00
invite.go Synchronous invites (#1273) 2020-08-17 11:40:49 +01:00
join.go FIFO ordering of input events (#1386) 2020-09-03 15:22:16 +01:00
keys.go Configuration format v1 (#1230) 2020-08-10 14:18:04 +01:00
leave.go FIFO ordering of input events (#1386) 2020-09-03 15:22:16 +01:00
missingevents.go Hopefully fix get_missing_events (#1070) 2020-05-28 12:44:34 +01:00
profile.go Configuration format v1 (#1230) 2020-08-10 14:18:04 +01:00
publicrooms.go Remove QueryBulkStateContent from current state server (#1404) 2020-09-07 12:38:09 +01:00
query.go Configuration format v1 (#1230) 2020-08-10 14:18:04 +01:00
routing.go Remove current state server (#1405) 2020-09-07 14:47:59 +01:00
send.go Implement rejected events (#1426) 2020-09-16 13:00:52 +01:00
send_test.go Implement rejected events (#1426) 2020-09-16 13:00:52 +01:00
state.go Fix room checks for /state and /state_ids (#1155) 2020-06-23 11:47:48 +01:00
threepid.go FIFO ordering of input events (#1386) 2020-09-03 15:22:16 +01:00
version.go Version imprint (#1383) 2020-09-02 16:18:08 +01:00