dendrite/cmd
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
..
client-api-proxy Remove publicroomsapi (#1176) 2020-07-02 17:11:33 +01:00
create-account Configuration format v1 (#1230) 2020-08-10 14:18:04 +01:00
create-room-events Fix rooms v3 url paths for good - with tests (#1130) 2020-06-15 16:57:59 +01:00
dendrite-appservice-server API setup refactoring (#1266) 2020-08-13 12:16:37 +01:00
dendrite-client-api-server Remove current state server (#1405) 2020-09-07 14:47:59 +01:00
dendrite-demo-libp2p Remove current state server (#1405) 2020-09-07 14:47:59 +01:00
dendrite-demo-yggdrasil Remove current state server (#1405) 2020-09-07 14:47:59 +01:00
dendrite-edu-server API setup refactoring (#1266) 2020-08-13 12:16:37 +01:00
dendrite-federation-api-server Remove current state server (#1405) 2020-09-07 14:47:59 +01:00
dendrite-federation-sender-server Remove QueryRoomsForUser from current state server (#1398) 2020-09-04 15:58:30 +01:00
dendrite-key-server API setup refactoring (#1266) 2020-08-13 12:16:37 +01:00
dendrite-media-api-server API setup refactoring (#1266) 2020-08-13 12:16:37 +01:00
dendrite-monolith-server Remove current state server (#1405) 2020-09-07 14:47:59 +01:00
dendrite-room-server Use federation sender for backfill/getting missing events (#1379) 2020-09-02 15:26:30 +01:00
dendrite-server-key-api-server API setup refactoring (#1266) 2020-08-13 12:16:37 +01:00
dendrite-sync-api-server Remove current state server (#1405) 2020-09-07 14:47:59 +01:00
dendrite-user-api-server Remove device DB from clientapi (#1352) 2020-08-27 18:53:40 +01:00
dendritejs Remove current state server (#1405) 2020-09-07 14:47:59 +01:00
federation-api-proxy Separate muxes for public and internal APIs (#1056) 2020-05-22 11:43:17 +01:00
generate-config Rate limiting (#1385) 2020-09-03 10:12:11 +01:00
generate-keys API setup refactoring (#1266) 2020-08-13 12:16:37 +01:00
goose Add support for database migrations (#1416) 2020-09-10 15:10:32 +01:00
kafka-producer Fix sarama import URLs (#856) 2020-04-22 15:26:56 +01:00
mediaapi-integration-tests API setup refactoring (#1266) 2020-08-13 12:16:37 +01:00
roomserver-integration-tests Implement rejected events (#1426) 2020-09-16 13:00:52 +01:00
syncserver-integration-tests API setup refactoring (#1266) 2020-08-13 12:16:37 +01:00