summary refs log tree commit diff
path: root/synapse/handlers (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | Remove bind_email param from dinsic-specific codeAndrew Morgan2020-04-241-1/+0
| |
* | HACK: Bind email to identity server when using it for 3pid delegationAndrew Morgan2020-04-241-1/+27
| |
* | Fix some broken referencesAndrew Morgan2020-04-241-4/+4
| |
* | Fix and refactor rewritten IS url feature. Add sample config docs (#40)Andrew Morgan2020-04-221-83/+72
| |
* | Consolidate id_server URL translationAndrew Morgan2020-04-202-35/+27
| |
* | Don't verify signatures using re-written id_server urlAndrew Morgan2020-04-171-8/+10
| |
* | Add an option to the set password API to choose whether to logout other ↵Andrew Morgan2020-03-241-16/+25
|\| | | | | | | | | | | | | devices. (#7085) * commit '88b41986d': Add an option to the set password API to choose whether to logout other devices. (#7085)
| * Add an option to the set password API to choose whether to logout other ↵Patrick Cloke2020-03-181-16/+25
| | | | | | | | devices. (#7085)
* | Remove special casing of `m.room.aliases` events (#7034)Andrew Morgan2020-03-241-15/+1
|\| | | | | | | | | * commit '60724c46b': Remove special casing of `m.room.aliases` events (#7034)
| * Remove special casing of `m.room.aliases` events (#7034)Patrick Cloke2020-03-171-15/+1
| |
* | Merge commit '6a3504636' into dinsic-release-v1.12.xAndrew Morgan2020-03-243-91/+110
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6a3504636': (29 commits) Revert "Add options to disable setting profile info for prevent changes. (#7053)" Populate the room version from state events (#7070) Fix buggy condition in account validity handler (#7074) Use innerText instead of innerHTML Add type annotations and comments to auth handler (#7063) Lint Put the file in the templates directory Update wording and config Changelog Move the default SAML2 error HTML to a dedicated file Refactor a bit Also don't fail on aliases events in this case Lint Changelog Also don't filter out events sent by ignored users when checking state visibility Fix condition Don't filter out dummy events when we're checking the visibility of state Update sample_config.yaml Update synapse/config/registration.py lint, fix tests ...
| * Revert "Add options to disable setting profile info for prevent changes. ↵Richard van der Hoff2020-03-171-16/+0
| | | | | | | | | | | | | | (#7053)" This reverts commit 54dd28621b070ca67de9f773fe9a89e1f4dc19da, reversing changes made to 6640460d054e8f4444046a34bdf638921b31c01e.
| * Fix buggy condition in account validity handler (#7074)Brendan Abolivier2020-03-161-1/+5
| |
| * Add type annotations and comments to auth handler (#7063)Patrick Cloke2020-03-121-89/+104
| |
| * Don't filter out dummy events when we're checking the visibility of stateBrendan Abolivier2020-03-111-1/+1
| |
| * Add options to disable setting profile info for prevent changes. (#7053)Brendan Abolivier2020-03-101-0/+16
| |\
| | * lint, fix testsdklimpel2020-03-091-1/+3
| | |
| | * updates after reviewdklimpel2020-03-091-4/+4
| | |
| | * lintdklimpel2020-03-081-4/+2
| | |
| | * changelogdklimpel2020-03-081-2/+8
| | |
| | * Add options to disable setting profile info for prevent changes.dklimpel2020-03-081-0/+10
| | |
* | | Merge pull request #7058 from matrix-org/babolivier/saml_error_htmlAndrew Morgan2020-03-241-1/+19
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '6640460d0': Rephrase default message Hopefully mypy is happy now Attempt at appeasing the gods of mypy Lint Changelog Update sample config SAML2: render a comprehensible error page if something goes wrong
| * | SAML2: render a comprehensible error page if something goes wrongBrendan Abolivier2020-03-101-1/+19
| | | | | | | | | | | | | | | | | | If an error happened while processing a SAML AuthN response, or a client ends up doing a `GET` request to `/authn_response`, then render a customisable error page rather than a confusing error.
* | | Merge pull request #7045 from matrix-org/babolivier/room_keys_checkAndrew Morgan2020-03-241-0/+7
|\| | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'bbf725e7d': Lint Mention the session ID in the error message Lint Changelog Make sure that is_verified is a boolean when processing room keys
| * | LintBrendan Abolivier2020-03-061-2/+1
| | |
| * | Mention the session ID in the error messageBrendan Abolivier2020-03-061-2/+3
| | |
| * | LintBrendan Abolivier2020-03-061-1/+2
| | |
| * | Make sure that is_verified is a boolean when processing room keysBrendan Abolivier2020-03-061-0/+6
| | |
* | | Allow deleting an alias if the user has sufficient power level (#6986)Andrew Morgan2020-03-241-33/+74
|\| | | | | | | | | | | | | | * commit '13892776e': Allow deleting an alias if the user has sufficient power level (#6986)
| * | Allow deleting an alias if the user has sufficient power level (#6986)Patrick Cloke2020-03-041-33/+74
| | |
| * | Merge branch 'master' into developBrendan Abolivier2020-03-032-3/+76
| |\ \
* | \ \ v1.11.1Andrew Morgan2020-03-242-3/+76
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'fd983fad9': v1.11.1 Fix wrong handler being used in SAML handler Factor out complete_sso_login and expose it to the Module API Add a whitelist for the SSO confirmation step. Add a confirmation step to the SSO login flow
| * | | Fix wrong handler being used in SAML handlerBrendan Abolivier2020-03-031-3/+2
| | | |
| * | | Factor out complete_sso_login and expose it to the Module APIBrendan Abolivier2020-03-031-0/+74
| | | |
* | | | Validate the alt_aliases property of canonical alias events (#6971)Andrew Morgan2020-03-242-10/+51
|\ \ \ \ | | |/ / | |/| | | | | | | | | | * commit '7dcbc33a1': Validate the alt_aliases property of canonical alias events (#6971)
| * | | Validate the alt_aliases property of canonical alias events (#6971)Patrick Cloke2020-03-032-10/+51
| | |/ | |/|
* | | Store room version on invite (#6983)Andrew Morgan2020-03-241-0/+12
|\| | | | | | | | | | | | | | * commit '3e99528f2': Store room version on invite (#6983)
| * | Store room version on invite (#6983)Richard van der Hoff2020-02-261-0/+12
| | | | | | | | | | | | | | | When we get an invite over federation, store the room version in the rooms table. The general idea here is that, when we pull the invite out again, we'll want to know what room_version it belongs to (so that we can later redact it if need be). So we need to store it somewhere...
* | | Port PresenceHandler to async/await (#6991)Andrew Morgan2020-03-242-108/+89
|\| | | | | | | | | | | | | | * commit '1f773eec9': Port PresenceHandler to async/await (#6991)
| * | Port PresenceHandler to async/await (#6991)Erik Johnston2020-02-262-108/+89
| | |
* | | Remove redundant store_room call (#6979)Andrew Morgan2020-03-241-23/+0
|\| | | | | | | | | | | | | | * commit '691659568': Remove redundant store_room call (#6979)
| * | Remove redundant store_room call (#6979)Richard van der Hoff2020-02-241-23/+0
| | | | | | | | | | | | | | | `_process_received_pdu` is only called by `on_receive_pdu`, which ignores any events for unknown rooms, so this is redundant.
* | | Upsert room version when we join over federation (#6968)Andrew Morgan2020-03-241-10/+12
|\| | | | | | | | | | | | | | * commit 'a301934f4': Upsert room version when we join over federation (#6968)
| * | Upsert room version when we join over federation (#6968)Richard van der Hoff2020-02-241-10/+12
| | | | | | | | | | | | | | | | | | | | | | | | This is intended as a precursor to storing room versions when we receive an invite over federation, but has the happy side-effect of fixing #3374 at last. In short: change the store_room with try/except to a proper upsert which updates the right columns.
* | | Change displayname of user as admin in rooms (#6876)Andrew Morgan2020-03-241-1/+11
|\| | | | | | | | | | | | | | * commit '7b0e2d961': Change displayname of user as admin in rooms (#6876)
| * | Change displayname of user as admin in rooms (#6876)Dirk Klimpel2020-02-211-1/+11
| | |
* | | Stop returning aliases as part of the room list. (#6970)Andrew Morgan2020-03-241-9/+0
|\| | | | | | | | | | | | | | | | | * commit 'fcf459948': Stop returning aliases as part of the room list. (#6970) Publishing/removing from the directory requires a power level greater than canonical aliases.
| * | Stop returning aliases as part of the room list. (#6970)Patrick Cloke2020-02-211-9/+0
| | |
* | | Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957)Andrew Morgan2020-03-249-35/+33
|\| | | | | | | | | | | | | | | | | | | | * commit '509e381af': Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) changelog Increase MAX_EVENTS_BEHIND for replication clients
| * | Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957)Patrick Cloke2020-02-219-35/+33
| | | | | | | | | | | | Ensure good comprehension hygiene using flake8-comprehensions.
| * | Merge branch 'master' into developRichard van der Hoff2020-02-211-5/+5
| |\|
* | | Small grammar fixes to the ACME v1 deprecation notice (#6944)Andrew Morgan2020-03-241-5/+5
|\ \ \ | | |/ | |/| | | | | | | * commit '8f6d9c4cf': Small grammar fixes to the ACME v1 deprecation notice (#6944)
| * | Small grammar fixes to the ACME v1 deprecation notice (#6944)Andrew Morgan2020-02-211-5/+5
| | | | | | | | | Some small fixes to the copy in #6907.
* | | Do not send alias events when creating / upgrading a room (#6941)Andrew Morgan2020-03-242-40/+15
|\ \ \ | | |/ | |/| | | | | | | * commit '99eed85a7': Do not send alias events when creating / upgrading a room (#6941)
| * | Do not send alias events when creating / upgrading a room (#6941)Patrick Cloke2020-02-202-40/+15
| |/ | | | | Stop emitting room alias update events during room creation/upgrade.
* | Merge pull request #6949 from matrix-org/rav/list_room_aliases_peekableAndrew Morgan2020-03-245-33/+22
|\| | | | | | | | | | | | | | | * commit '2fb7794e6': changelog Make room alias lists peekable Add `allow_departed_users` param to `check_in_room_or_world_readable` Refactor the membership check methods in Auth
| * Merge pull request #6949 from matrix-org/rav/list_room_aliases_peekableRichard van der Hoff2020-02-195-33/+22
| |\ | | | | | | Make room alias lists peekable
| | * Make room alias lists peekableRichard van der Hoff2020-02-191-1/+3
| | | | | | | | | | | | | | | | | | As per https://github.com/matrix-org/matrix-doc/pull/2432#pullrequestreview-360566830, make room alias lists accessible to users outside world_readable rooms.
| | * Add `allow_departed_users` param to `check_in_room_or_world_readable`Richard van der Hoff2020-02-193-6/+14
| | | | | | | | | | | | | | | | | | | | | ... and set it everywhere it's called. while we're here, rename it for consistency with `check_user_in_room` (and to help check that I haven't missed any instances)
| | * Refactor the membership check methods in AuthRichard van der Hoff2020-02-182-28/+7
| | | | | | | | | | | | | | | these were getting a bit unwieldy, so let's combine `check_joined_room` and `check_user_was_in_room` into a single `check_user_in_room`.
* | | Merge pull request #6945 from matrix-org/babolivier/fix-retention-debug-logAndrew Morgan2020-03-241-1/+1
|\| | | | | | | | | | | | | | | | | | | | * commit '5e4a43855': Update changelog.d/6945.bugfix Changelog Fix log in message retention purge jobs
| * | Merge pull request #6945 from matrix-org/babolivier/fix-retention-debug-logBrendan Abolivier2020-02-191-1/+1
| |\ \ | | |/ | |/| Fix log in message retention purge jobs
| | * Fix log in message retention purge jobsBrendan Abolivier2020-02-181-1/+1
| | |
* | | Implement GET /_matrix/client/r0/rooms/{roomId}/aliases (#6939)Andrew Morgan2020-03-241-1/+16
|\| | | | | | | | | | | | | | * commit 'adfaea8c6': Implement GET /_matrix/client/r0/rooms/{roomId}/aliases (#6939)
| * | Implement GET /_matrix/client/r0/rooms/{roomId}/aliases (#6939)Richard van der Hoff2020-02-181-1/+16
| | | | | | | | | | | | | | | per matrix-org/matrix-doc#2432
* | | Merge pull request #6907 from matrix-org/babolivier/acme-configAndrew Morgan2020-03-241-1/+15
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd484126bf': Make the log more noticeable Print the error as an error log and raise the same exception we got Linters are hard but in they end they just want what's best for us Lint Changelog Lint Add a separator for the config warning Add a comprehensive error when failing to register for an ACME account Add mention and warning about ACME v1 deprecation to the Synapse config
| * | Merge pull request #6907 from matrix-org/babolivier/acme-configBrendan Abolivier2020-02-181-1/+15
| |\ \ | | |/ | |/| Add mention and warning about ACME v1 deprecation to the TLS config
| | * Make the log more noticeableBrendan Abolivier2020-02-181-1/+2
| | |
| | * Print the error as an error log and raise the same exception we gotBrendan Abolivier2020-02-181-9/+10
| | |
| | * LintBrendan Abolivier2020-02-131-6/+7
| | |
| | * LintBrendan Abolivier2020-02-131-7/+6
| | |
| | * Add a comprehensive error when failing to register for an ACME accountBrendan Abolivier2020-02-131-1/+13
| | |
* | | Stop sending events when creating or deleting aliases (#6904)Andrew Morgan2020-03-242-40/+41
|\| | | | | | | | | | | | | | * commit 'fe3941f6e': Stop sending events when creating or deleting aliases (#6904)
| * | Stop sending events when creating or deleting aliases (#6904)Patrick Cloke2020-02-182-40/+41
| | | | | | | | | Stop sending events when creating or deleting associations (room aliases). Send an updated canonical alias event if one of the alt_aliases is deleted.
* | | Raise the default power levels for invites, tombstones and server acls (#6834)Andrew Morgan2020-03-231-1/+9
|\| | | | | | | | | | | | | | * commit '3404ad289': Raise the default power levels for invites, tombstones and server acls (#6834)
| * | Raise the default power levels for invites, tombstones and server acls (#6834)Andrew Morgan2020-02-171-1/+9
| | |
* | | Filter the results of user directory searching via the spam checker (#6888)Andrew Morgan2020-03-232-3/+13
|\| | | | | | | | | | | | | | * commit '49f877d32': Filter the results of user directory searching via the spam checker (#6888)
| * | Filter the results of user directory searching via the spam checker (#6888)Patrick Cloke2020-02-141-2/+12
| |/ | | | | Add a method to the spam checker to filter the user directory results.
| * Merge branch 'release-v1.10.0' into developRichard van der Hoff2020-02-111-0/+1
| |\
* | | Reject device display names that are too long (#6882)Andrew Morgan2020-03-231-1/+13
|\| | | | | | | | | | | | | | * commit 'a92e703ab': Reject device display names that are too long (#6882)
| * | Reject device display names that are too long (#6882)Patrick Cloke2020-02-101-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | * Reject device display names that are too long. Too long is currently defined as 100 characters in length. * Add a regression test for rejecting a too long device display name.
* | | filter out m.room.aliases from /sync state blocks (#6884)Andrew Morgan2020-03-231-0/+1
|\ \ \ | | |/ | |/| | | | | | | * commit '01209382f': filter out m.room.aliases from /sync state blocks (#6884)
| * | filter out m.room.aliases from /sync state blocks (#6884)Matthew Hodgson2020-02-101-0/+1
| | | | | | | | | We forgot to filter out aliases from /sync state blocks as well as the timeline.
* | | Add support for putting fed user query API on workers (#6873)Andrew Morgan2020-03-231-19/+16
|\ \ \ | | |/ | |/| | | | | | | * commit '21db35f77': Add support for putting fed user query API on workers (#6873)
| * | Add support for putting fed user query API on workers (#6873)Erik Johnston2020-02-071-19/+16
| | |
* | | Allow moving group read APIs to workers (#6866)Andrew Morgan2020-03-231-131/+139
|\| | | | | | | | | | | | | | * commit 'de2d26737': Allow moving group read APIs to workers (#6866)
| * | Allow moving group read APIs to workers (#6866)Erik Johnston2020-02-071-131/+139
| | |
* | | Admin api to add an email address (#6789)Andrew Morgan2020-03-232-0/+10
|\| | | | | | | | | | | | | | * commit '56ca93ef5': Admin api to add an email address (#6789)
| * | Admin api to add an email address (#6789)Dirk Klimpel2020-02-072-0/+10
| | |
* | | Limit the number of events that can be requested when backfilling events (#6864)Andrew Morgan2020-03-231-0/+4
|\| | | | | | | | | | | | | | * commit '7765bf398': Limit the number of events that can be requested when backfilling events (#6864)
| * | Limit the number of events that can be requested when backfilling events (#6864)Patrick Cloke2020-02-061-0/+4
| | | | | | | | | Limit the maximum number of events requested when backfilling events.
* | | pass room version into FederationClient.send_join (#6854)Andrew Morgan2020-03-231-2/+1
|\| | | | | | | | | | | | | | * commit 'b0c8bdd49': pass room version into FederationClient.send_join (#6854)
| * | pass room version into FederationClient.send_join (#6854)Richard van der Hoff2020-02-061-2/+1
| | | | | | | | | | | | ... which allows us to sanity-check the create event.
* | | Third party event rules Update (#6781)Andrew Morgan2020-03-231-1/+5
|\| | | | | | | | | | | | | | * commit '99fcc9628': Third party event rules Update (#6781)
| * | Third party event rules Update (#6781)PeerD2020-02-061-1/+5
| | |
* | | Reduce amount of logging at INFO level. (#6862)Andrew Morgan2020-03-234-11/+11
|\| | | | | | | | | | | | | | * commit 'ed630ea17': Reduce amount of logging at INFO level. (#6862)
| * | Reduce amount of logging at INFO level. (#6862)Erik Johnston2020-02-064-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | A lot of the things we log at INFO are now a bit superfluous, so lets make them DEBUG logs to reduce the amount we log by default. Co-Authored-By: Brendan Abolivier <babolivier@matrix.org> Co-authored-by: Brendan Abolivier <github@brendanabolivier.com>
* | | Merge pull request #6823 from matrix-org/rav/redact_changes/5Andrew Morgan2020-03-231-6/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '9bcd37146': Update changelog Update changelog Update changelog Newsfile Simplify `room_version` handling in `FederationClient.send_invite` Pass room version object into `FederationClient.get_pdu`
| * | Merge pull request #6823 from matrix-org/rav/redact_changes/5Richard van der Hoff2020-02-061-6/+2
| |\ \ | | | | | | | | pass room versions around
| | * | Pass room version object into `FederationClient.get_pdu`Richard van der Hoff2020-02-051-6/+2
| | | |
| * | | Merge tag 'v1.10.0rc2' into developErik Johnston2020-02-064-17/+69
| |\ \ \ | | |/ / | |/| / | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Synapse 1.10.0rc2 (2020-02-06) ============================== Bugfixes -------- - Fix an issue with cross-signing where device signatures were not sent to remote servers. ([\#6844](https://github.com/matrix-org/synapse/issues/6844)) - Fix to the unknown remote device detection which was introduced in 1.10.rc1. ([\#6848](https://github.com/matrix-org/synapse/issues/6848)) Internal Changes ---------------- - Detect unexpected sender keys on remote encrypted events and resync device lists. ([\#6850](https://github.com/matrix-org/synapse/issues/6850))
* | | Check sender_key matches on inbound encrypted events. (#6850)Andrew Morgan2020-03-232-14/+66
|\ \ \ | | |/ | |/| | | | | | | * commit 'a58860e48': Check sender_key matches on inbound encrypted events. (#6850)
| * | Check sender_key matches on inbound encrypted events. (#6850)Erik Johnston2020-02-052-14/+66
| | | | | | | | | If they don't then the device lists are probably out of sync.
* | | Fix detecting unknown devices from remote encrypted events. (#6848)Andrew Morgan2020-03-233-3/+3
|\| | | | | | | | | | | | | | * commit '6475382d8': Fix detecting unknown devices from remote encrypted events. (#6848)
| * | Fix detecting unknown devices from remote encrypted events. (#6848)Erik Johnston2020-02-043-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | We were looking at the wrong event type (`m.room.encryption` vs `m.room.encrypted`). Also fixup the duplicate `EvenTypes` entries. Introduced in #6776.
* | | Merge pull request #6837 from matrix-org/rav/federation_asyncAndrew Morgan2020-03-233-235/+211
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'c7d6d5c69': (27 commits) make FederationHandler.send_invite async make FederationHandler.on_get_missing_events async changelog make FederationHandler.user_joined_room async make FederationHandler._clean_room_for_join async make FederationHandler._notify_persisted_event async make FederationHandler.persist_events_and_notify async make FederationHandler._make_and_verify_event async make FederationHandler.do_remotely_reject_invite async make FederationHandler._check_for_soft_fail async make FederationHandler._persist_auth_tree async make FederationHandler.do_invite_join async make FederationHandler.on_event_auth async make FederationHandler.on_exchange_third_party_invite_request async make FederationHandler.construct_auth_difference async make FederationHandler._update_context_for_auth_events async make FederationHandler._update_auth_events_and_context_for_auth async make FederationHandler.do_auth async make FederationHandler._prep_event async make FederationHandler._handle_new_event async ...
| * | Merge pull request #6837 from matrix-org/rav/federation_asyncRichard van der Hoff2020-02-043-235/+211
| |\ \ | | | | | | | | Port much of `synapse.handlers.federation` to async/await.
| | * | make FederationHandler.send_invite asyncRichard van der Hoff2020-02-032-6/+4
| | | |
| | * | make FederationHandler.on_get_missing_events asyncRichard van der Hoff2020-02-031-5/+4
| | | |
| | * | make FederationHandler.user_joined_room asyncRichard van der Hoff2020-02-031-3/+3
| | | |
| | * | make FederationHandler._clean_room_for_join asyncRichard van der Hoff2020-02-031-4/+4
| | | |
| | * | make FederationHandler._notify_persisted_event asyncRichard van der Hoff2020-02-031-4/+6
| | | |
| | * | make FederationHandler.persist_events_and_notify asyncRichard van der Hoff2020-02-031-10/+10
| | | |
| | * | make FederationHandler._make_and_verify_event asyncRichard van der Hoff2020-02-031-5/+10
| | | |
| | * | make FederationHandler.do_remotely_reject_invite asyncRichard van der Hoff2020-02-032-8/+11
| | | |
| | * | make FederationHandler._check_for_soft_fail asyncRichard van der Hoff2020-02-031-13/+9
| | | |
| | * | make FederationHandler._persist_auth_tree asyncRichard van der Hoff2020-02-031-11/+7
| | | |
| | * | make FederationHandler.do_invite_join asyncRichard van der Hoff2020-02-032-18/+18
| | | |
| | * | make FederationHandler.on_event_auth asyncRichard van der Hoff2020-02-031-5/+4
| | | |
| | * | make FederationHandler.on_exchange_third_party_invite_request asyncRichard van der Hoff2020-02-031-14/+12
| | | |
| | * | make FederationHandler.construct_auth_difference asyncRichard van der Hoff2020-02-031-3/+4
| | | |
| | * | make FederationHandler._update_context_for_auth_events asyncRichard van der Hoff2020-02-031-10/+10
| | | |
| | * | make FederationHandler._update_auth_events_and_context_for_auth asyncRichard van der Hoff2020-02-031-20/+21
| | | |
| | * | make FederationHandler.do_auth asyncRichard van der Hoff2020-02-031-10/+14
| | | |
| | * | make FederationHandler._prep_event asyncRichard van der Hoff2020-02-031-23/+10
| | | |
| | * | make FederationHandler._handle_new_event asyncRichard van der Hoff2020-02-031-6/+7
| | | |
| | * | make FederationHandler._handle_new_events asyncRichard van der Hoff2020-02-031-8/+6
| | | |
| | * | make FederationHandler.on_make_leave_request asyncRichard van der Hoff2020-02-031-13/+10
| | | |
| | * | make FederationHandler.on_send_leave_request asyncRichard van der Hoff2020-02-031-5/+3
| | | |
| | * | make FederationHandler.on_make_join_request asyncRichard van der Hoff2020-02-031-13/+10
| | | |
| | * | make FederationHandler.on_invite_request asyncRichard van der Hoff2020-02-031-5/+4
| | | |
| | * | make FederationHandler.on_send_join_request asyncRichard van der Hoff2020-02-031-9/+7
| | | |
| | * | make FederationHandler.on_query_auth asyncRichard van der Hoff2020-02-031-7/+6
| | |/
* | | Add typing to SyncHandler (#6821)Andrew Morgan2020-03-231-341/+364
|\| | | | | | | | | | | | | | * commit 'b9391c957': Add typing to SyncHandler (#6821)
| * | Add typing to SyncHandler (#6821)Erik Johnston2020-02-031-341/+364
| |/ | | | | | | Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
* | pass room_version into compute_event_signature (#6807)Andrew Morgan2020-03-231-1/+4
|\| | | | | | | | | * commit '7f93eb190': pass room_version into compute_event_signature (#6807)
| * pass room_version into compute_event_signature (#6807)Richard van der Hoff2020-01-311-1/+4
| |
* | Merge pull request #6820 from matrix-org/rav/get_room_version_idAndrew Morgan2020-03-234-14/+16
|\| | | | | | | | | | | | | * commit '160522e32': newsfile Add `get_room_version` method s/get_room_version/get_room_version_id/
| * Merge pull request #6820 from matrix-org/rav/get_room_version_idRichard van der Hoff2020-01-314-14/+16
| |\ | | | | | | Make `get_room_version` return a RoomVersion object
| | * s/get_room_version/get_room_version_id/Richard van der Hoff2020-01-314-14/+16
| | | | | | | | | | | | | | | ... to make way for a forthcoming get_room_version which returns a RoomVersion object.
* | | Fix bug with getting missing auth event during join 500'ed (#6810)Andrew Morgan2020-03-231-1/+5
|\| | | | | | | | | | | | | | * commit '7d846e870': Fix bug with getting missing auth event during join 500'ed (#6810)
| * | Fix bug with getting missing auth event during join 500'ed (#6810)Erik Johnston2020-01-311-1/+5
| |/
* | pass room version into FederationHandler.on_invite_request (#6805)Andrew Morgan2020-03-231-3/+3
|\| | | | | | | | | * commit '46a446828': pass room version into FederationHandler.on_invite_request (#6805)
| * pass room version into FederationHandler.on_invite_request (#6805)Richard van der Hoff2020-01-301-3/+3
| |
* | Resync remote device list when detected as stale. (#6786)Andrew Morgan2020-03-232-4/+24
|\| | | | | | | | | * commit 'b66032705': Resync remote device list when detected as stale. (#6786)
| * Resync remote device list when detected as stale. (#6786)Erik Johnston2020-01-302-4/+24
| |
* | Merge pull request #6790 from matrix-org/rav/msc2260.1Andrew Morgan2020-03-232-15/+32
|\| | | | | | | | | | | | | | | * commit '281551f72': changelog Make /directory/room/<alias> handle restrictive power levels Set the PL for aliases events to 0. Factor out a `copy_power_levels_contents` method
| * Make /directory/room/<alias> handle restrictive power levelsRichard van der Hoff2020-01-291-1/+6
| | | | | | | | | | Fixes a bug where the alias would be added, but `PUT /directory/room/<alias>` would return a 403.
| * Set the PL for aliases events to 0.Richard van der Hoff2020-01-291-2/+15
| |
| * Factor out a `copy_power_levels_contents` methodRichard van der Hoff2020-01-291-12/+11
| | | | | | | | I'm going to need another copy (hah!) of this.
* | Fix bug when querying remote user keys that require a resync. (#6796)Andrew Morgan2020-03-231-1/+2
|\| | | | | | | | | * commit '2cad8baa7': Fix bug when querying remote user keys that require a resync. (#6796)
| * Fix bug when querying remote user keys that require a resync. (#6796)Erik Johnston2020-01-291-1/+2
| | | | | | | | We ended up only returning a single device, rather than all of them.
* | Detect unknown remote devices and mark cache as stale (#6776)Andrew Morgan2020-03-232-2/+75
|\| | | | | | | | | * commit 'e17a11066': Detect unknown remote devices and mark cache as stale (#6776)
| * Detect unknown remote devices and mark cache as stale (#6776)Erik Johnston2020-01-282-2/+75
| | | | | | | | We just mark the fact that the cache may be stale in the database for now.
* | Pass room version object into event_auth.check and check_redaction (#6788)Andrew Morgan2020-03-232-9/+17
|\| | | | | | | | | * commit 'a8ce7aeb4': Pass room version object into event_auth.check and check_redaction (#6788)
| * Pass room version object into event_auth.check and check_redaction (#6788)Richard van der Hoff2020-01-282-9/+17
| | | | | | | | | | | | | | These are easier to work with than the strings and we normally have one around. This fixes `FederationHander._persist_auth_tree` which was passing a RoomVersion object into event_auth.check instead of a string.
* | Add `rooms.room_version` column (#6729)Andrew Morgan2020-03-232-35/+82
|\| | | | | | | | | * commit '8df862e45': Add `rooms.room_version` column (#6729)
| * Add `rooms.room_version` column (#6729)Erik Johnston2020-01-272-35/+82
| | | | | | This is so that we don't have to rely on pulling it out from `current_state_events` table.
* | Validate client_secret parameter (#6767)Andrew Morgan2020-03-231-1/+3
|\| | | | | | | | | * commit '9f7aaf90b': Validate client_secret parameter (#6767)
| * Validate client_secret parameter (#6767)Andrew Morgan2020-01-241-1/+3
| |
* | Remove unnecessary abstractions in admin handler (#6751)Andrew Morgan2020-03-231-62/+0
|\| | | | | | | | | | | | | | | * commit 'ce84dd9e2': Remove unnecessary abstractions in admin handler (#6751) Fixup warning about workers changes Add deprecation headers Fixup changelog
| * Remove unnecessary abstractions in admin handler (#6751)Andrew Morgan2020-01-221-62/+0
| |
* | Add more logging around message retention policies support (#6717)Andrew Morgan2020-03-231-0/+13
|\| | | | | | | | | | | | | * commit 'a17f64361': Add more logging around message retention policies support (#6717) Fix up changelog bump version to v1.9.0.dev2
| * Add more logging around message retention policies support (#6717)Brendan Abolivier2020-01-171-0/+13
| | | | | | So we can debug issues like #6683 more easily
* | Merge pull request #6714 from matrix-org/babolivier/retention_select_eventAndrew Morgan2020-03-231-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '3b72bb780': bump version to v1.9.0.dev1 Precise changelog Fixup diff Remove get_room_event_after_stream_ordering entirely Lint Rename changelog Changelog Correctly order when selecting before stream ordering Fix typo Fix instantiation of message retention purge jobs
| * Merge pull request #6714 from matrix-org/babolivier/retention_select_eventBrendan Abolivier2020-01-171-1/+1
| |\ | | | | | | Fix instantiation of message retention purge jobs
| | * Fix instantiation of message retention purge jobsBrendan Abolivier2020-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When figuring out which topological token to start a purge job at, we need to do the following: 1. Figure out a timestamp before which events will be purged 2. Select the first stream ordering after that timestamp 3. Select info about the first event after that stream ordering 4. Build a topological token from that info In some situations (e.g. quiet rooms with a short max_lifetime), there might not be an event after the stream ordering at step 3, therefore we abort the purge with the error `No event found`. To mitigate that, this patch fetches the first event _before_ the stream ordering, instead of after.
* | | Merge pull request #6724 from matrix-org/rav/log_saml_attributesAndrew Morgan2020-03-231-1/+12
|\| | | | | | | | | | | | | | | | | | | | * commit '59dc87c61': changelog Log saml assertions rather than the whole response move batch_iter to a separate module
| * | Merge pull request #6724 from matrix-org/rav/log_saml_attributesRichard van der Hoff2020-01-171-1/+12
| |\ \ | | | | | | | | Log saml assertions rather than the whole response
| | * | Log saml assertions rather than the whole responseRichard van der Hoff2020-01-161-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | ... since the whole response is huge. We even need to break up the assertions, since kibana otherwise truncates them.
* | | | Delegate remote_user_id mapping to the saml mapping provider (#6723)Andrew Morgan2020-03-231-6/+21
|\| | | | | | | | | | | | | | | | | | | * commit '2b6a77fcd': Delegate remote_user_id mapping to the saml mapping provider (#6723)
| * | | Delegate remote_user_id mapping to the saml mapping provider (#6723)Richard van der Hoff2020-01-171-6/+21
| |/ / | | | | | | Turns out that figuring out a remote user id for the SAML user isn't quite as obvious as it seems. Factor it out to the SamlMappingProvider so that it's easy to control.
* | | Add StateMap type alias (#6715)Andrew Morgan2020-03-233-28/+31
|\| | | | | | | | | | | | | | * commit 'd386f2f33': Add StateMap type alias (#6715)
| * | Add StateMap type alias (#6715)Erik Johnston2020-01-163-28/+31
| | |
* | | Port synapse.replication.tcp to async/await (#6666)Andrew Morgan2020-03-231-1/+1
|\| | | | | | | | | | | | | | * commit '48c3a9688': Port synapse.replication.tcp to async/await (#6666)
| * | Port synapse.replication.tcp to async/await (#6666)Erik Johnston2020-01-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Port synapse.replication.tcp to async/await * Newsfile * Correctly document type of on_<FOO> functions as async * Don't be overenthusiastic with the asyncing....
* | | Add `local_current_membership` table (#6655)Andrew Morgan2020-03-236-6/+6
|\| | | | | | | | | | | | | | * commit '28c98e51f': Add `local_current_membership` table (#6655)
| * | Add `local_current_membership` table (#6655)Erik Johnston2020-01-156-6/+6
| |/ | | | | | | | | | | | | Currently we rely on `current_state_events` to figure out what rooms a user was in and their last membership event in there. However, if the server leaves the room then the table may be cleaned up and that information is lost. So lets add a table that separately holds that information.
* | Kill off RegistrationError (#6691)Andrew Morgan2020-03-231-9/+3
|\| | | | | | | | | * commit '326c893d2': Kill off RegistrationError (#6691)
| * Kill off RegistrationError (#6691)Richard van der Hoff2020-01-131-9/+3
| | | | | | This is pretty pointless. Let's just use SynapseError.
* | Don't assign numeric IDs for empty usernames (#6690)Andrew Morgan2020-03-231-1/+1
|\| | | | | | | | | * commit '2d07c7377': Don't assign numeric IDs for empty usernames (#6690)
| * Don't assign numeric IDs for empty usernames (#6690)Richard van der Hoff2020-01-131-1/+1
| | | | | | | | Fix a bug where we would assign a numeric userid if somebody tried registering with an empty username
* | Merge pull request #6689 from matrix-org/rav/saml_mapping_provider_updatesAndrew Morgan2020-03-231-6/+16
|\| | | | | | | | | | | | | * commit '3cfac9593': changelog Pass client redirect URL into SAML mapping providers Pass the module_api into the SamlMappingProvider
| * Pass client redirect URL into SAML mapping providersRichard van der Hoff2020-01-121-4/+11
| |
| * Pass the module_api into the SamlMappingProviderRichard van der Hoff2020-01-121-2/+5
| | | | | | | | | | ... for consistency with other modules, and because we'll need it sooner or later and it will be a pain to introduce later.
* | Allow admin users to create or modify users without a shared secret (#6495)Andrew Morgan2020-03-231-0/+9
|\| | | | | | | | | | | * commit 'd2906fe66': Allow admin users to create or modify users without a shared secret (#6495) Fixup changelog
| * Allow admin users to create or modify users without a shared secret (#6495)Manuel Stahl2020-01-091-0/+9
| | | | | | Signed-off-by: Manuel Stahl <manuel.stahl@awesome-technologies.de>
* | Correctly proxy remote group HTTP errors. (#6654)Andrew Morgan2020-03-201-0/+16
|\| | | | | | | | | * commit 'be29ed7ad': Correctly proxy remote group HTTP errors. (#6654)
| * Correctly proxy remote group HTTP errors. (#6654)Erik Johnston2020-01-071-0/+16
| | | | | | | | | | e.g. if remote returns a 404 then that shouldn't be treated as an error but should be proxied through.
* | Merge pull request #6652 from matrix-org/babolivier/depth_missing_eventsAndrew Morgan2020-03-201-2/+2
|\| | | | | | | | | | | * commit '0ab5853ec': Changelog Fix conditions failing if min_depth = 0
| * Merge pull request #6652 from matrix-org/babolivier/depth_missing_eventsBrendan Abolivier2020-01-071-2/+2
| |\ | | | | | | Fix conditions failing if min_depth = 0
| | * Fix conditions failing if min_depth = 0Brendan Abolivier2020-01-071-2/+2
| | | | | | | | | | | | This could result in Synapse not fetching prev_events for new events in the room if it has missed some events.
* | | Merge pull request #6629 from matrix-org/rav/kill_event_reference_hashesAndrew Morgan2020-03-202-34/+20
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '1807db5e7': changelog Remove unused get_latest_event_ids_and_hashes_in_room Remove unused get_prev_events_and_hashes_for_room Remove unused hashes and depths from _update_membership params Remove unused hashes and depths from create_event params Remove unused hashes and depths from create_new_client_event params replace get_prev_events_and_hashes_for_room with get_prev_events_for_room in create_new_client_event rename get_prev_events_for_room to get_prev_events_and_hashes_for_room
| * | Merge pull request #6629 from matrix-org/rav/kill_event_reference_hashesRichard van der Hoff2020-01-062-34/+20
| |\ \ | | | | | | | | Remove a bunch of unused code from event creation
| | * | Remove unused hashes and depths from _update_membership paramsRichard van der Hoff2020-01-061-13/+4
| | | |
| | * | Remove unused hashes and depths from create_event paramsRichard van der Hoff2020-01-062-17/+12
| | | |
| | * | Remove unused hashes and depths from create_new_client_event paramsRichard van der Hoff2020-01-061-12/+14
| | | |
| | * | replace get_prev_events_and_hashes_for_room with get_prev_events_for_room in ↵Richard van der Hoff2020-01-061-9/+3
| | | | | | | | | | | | | | | | create_new_client_event
| | * | rename get_prev_events_for_room to get_prev_events_and_hashes_for_roomRichard van der Hoff2020-01-062-3/+7
| | | | | | | | | | | | | | | | ... to make way for a new method which just returns the event ids
* | | | Fix some test failures when frozen_dicts are enabled (#6642)Andrew Morgan2020-03-202-6/+11
|\| | | | | | | | | | | | | | | | | | | * commit 'ba897a759': Fix some test failures when frozen_dicts are enabled (#6642)
| * | | Fix some test failures when frozen_dicts are enabled (#6642)Richard van der Hoff2020-01-062-6/+11
| | | | | | | | | | | | | | | | Fixes #4026
* | | | Fix an error which was thrown by the PresenceHandler _on_shutdown handler. ↵Andrew Morgan2020-03-201-7/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | (#6640) * commit 'ab4b4ee6a': Fix an error which was thrown by the PresenceHandler _on_shutdown handler. (#6640)
| * | | Fix an error which was thrown by the PresenceHandler _on_shutdown handler. ↵Richard van der Hoff2020-01-061-7/+2
| |/ / | | | | | | | | | (#6640)
* | | Fix power levels being incorrectly set in old and new rooms after a room ↵Andrew Morgan2020-03-201-7/+10
|\| | | | | | | | | | | | | | | | | | | | upgrade (#6633) * commit '01c3c6c92': Fix power levels being incorrectly set in old and new rooms after a room upgrade (#6633)
| * | Fix power levels being incorrectly set in old and new rooms after a room ↵Andrew Morgan2020-01-061-7/+10
| |/ | | | | | | | | | | upgrade (#6633) Modify a copy of an upgraded room's PL before sending to the new room
| * Merge branch 'master' into developRichard van der Hoff2019-12-201-1/+4
| |\
* | | Fix small extra argument passed to get_eventsAndrew Morgan2020-03-201-2/+9
| | |
* | | Change EventContext to use the Storage class (#6564)Andrew Morgan2020-03-205-16/+16
|\| | | | | | | | | | | | | | * commit 'fa780e972': Change EventContext to use the Storage class (#6564)
| * | Change EventContext to use the Storage class (#6564)Erik Johnston2019-12-205-16/+16
| | |
* | | Fix exceptions when attempting to backfill (#6576)Andrew Morgan2020-03-202-2/+5
|\ \ \ | | |/ | |/| | | | | | | * commit '03d3792f3': Fix exceptions when attempting to backfill (#6576)
| * | Fix exceptions when attempting to backfill (#6576)Richard van der Hoff2019-12-201-1/+4
| | | | | | | | | Fixes #6575
* | | Port some admin handlers to async/await (#6559)Andrew Morgan2020-03-202-54/+41
|\ \ \ | | |/ | |/| | | | | | | * commit '3d46124ad': Port some admin handlers to async/await (#6559)
| * | Port some admin handlers to async/await (#6559)Erik Johnston2019-12-192-54/+41
| | |
* | | Add database config class (#6513)Andrew Morgan2020-03-202-36/+34
|\| | | | | | | | | | | | | | | | | * commit '2284eb3a5': Add database config class (#6513) too many parens
| * | Add database config class (#6513)Erik Johnston2019-12-181-1/+1
| | | | | | | | | | | | | | | This encapsulates config for a given database and is the way to get new connections.
| * | Merge release-v1.7.1 into developRichard van der Hoff2019-12-182-2/+6
| |\|
* | | Remove unused `get_pagination_rows` methods. (#6557)Andrew Morgan2020-03-193-18/+0
|\| | | | | | | | | | | | | | * commit '02553901c': Remove unused `get_pagination_rows` methods. (#6557)
| * | Remove unused `get_pagination_rows` methods. (#6557)Erik Johnston2019-12-173-18/+0
| | | | | | | | | Remove unused get_pagination_rows methods
* | | Merge pull request #6553 from matrix-org/babolivier/fix-context-filterAndrew Morgan2020-03-191-2/+5
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | * commit '631653036': Incorporate review Update changelog.d/6553.bugfix Lint Add test case Changelog Update the documentation of the filtering function Use the filtered version of an event when responding to /context requests for that event
| * | Merge pull request #6553 from matrix-org/babolivier/fix-context-filterBrendan Abolivier2019-12-161-2/+5
| |\ \ | | | | | | | | Use the filtered version of an event when responding to /context requests for that event
| | * | Incorporate reviewBrendan Abolivier2019-12-161-1/+1
| | | |
| | * | Use the filtered version of an event when responding to /context requests ↵Brendan Abolivier2019-12-161-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | for that event Sometimes the filtering function can return a pruned version of an event (on top of either the event itself or an empty list), if it thinks the user should be able to see that there's an event there but not the content of that event. Therefore, the previous logic of 'if filtered is empty then we can use the event we retrieved from the database' is flawed, and we should use the event returned by the filtering function.
* | | | Add option to allow profile queries without sharing a room (#6523)Andrew Morgan2020-03-191-5/+5
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | * commit 'bfb95654c': Add option to allow profile queries without sharing a room (#6523)
| * | | Add option to allow profile queries without sharing a room (#6523)Will Hunt2019-12-161-1/+5
| | | |
* | | | Exclude rejected state events when calculating state at backwards extrems ↵Andrew Morgan2020-03-191-1/+1
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | (#6527) * commit 'bbb75ff6e': Exclude rejected state events when calculating state at backwards extrems (#6527)
| * | | Exclude rejected state events when calculating state at backwards extrems ↵Richard van der Hoff2019-12-161-1/+1
| | | | | | | | | | | | | | | | | | | | (#6527) This fixes a weird bug where, if you were determined enough, you could end up with a rejected event forming part of the state at a backwards-extremity. Authing that backwards extrem would then lead to us trying to pull the rejected event from the db (with allow_rejected=False), which would fail with a 404.
* | | | Persist auth/state events at backwards extremities when we fetch them (#6526)Andrew Morgan2020-03-191-39/+14
|\| | | | | | | | | | | | | | | | | | | * commit 'ff773ff72': Persist auth/state events at backwards extremities when we fetch them (#6526)
| * | | Persist auth/state events at backwards extremities when we fetch them (#6526)Richard van der Hoff2019-12-161-163/+80
| | | | | | | | | | | | | | | | The main point here is to make sure that the state returned by _get_state_in_room has been authed before we try to use it as state in the room.
| * | | sanity-checking for events used in state res (#6531)Richard van der Hoff2019-12-161-0/+1
| | | | | | | | | | | | | | | | | | | | When we perform state resolution, check that all of the events involved are in the right room.
* | | | Check the room_id of events when fetching room state/auth (#6524)Andrew Morgan2020-03-191-24/+54
|\| | | | | | | | | | | | | | | | | | | * commit '35bbe4ca7': Check the room_id of events when fetching room state/auth (#6524)
| * | | Check the room_id of events when fetching room state/auth (#6524)Richard van der Hoff2019-12-161-24/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we request the state/auth_events to populate a backwards extremity (on backfill or in the case of missing events in a transaction push), we should check that the returned events are in the right room rather than blindly using them in the room state or auth chain. Given that _get_events_from_store_or_dest takes a room_id, it seems clear that it should be sanity-checking the room_id of the requested events, so let's do it there.
* | | | Add `include_event_in_state` to _get_state_for_room (#6521)Andrew Morgan2020-03-191-18/+21
|\| | | | | | | | | | | | | | | | | | | * commit '20d5ba16e': Add `include_event_in_state` to _get_state_for_room (#6521)
| * | | Add `include_event_in_state` to _get_state_for_room (#6521)Richard van der Hoff2019-12-161-18/+21
| | | | | | | | | | | | | | | | | | | | | | | | Make it return the state *after* the requested event, rather than the one before it. This is a bit easier and requires fewer calls to get_events_from_store_or_dest.
* | | | Move get_state methods into FederationHandler (#6503)Andrew Morgan2020-03-191-101/+93
|\| | | | | | | | | | | | | | | | | | | * commit 'be294d6fd': Move get_state methods into FederationHandler (#6503)
| * | | Move get_state methods into FederationHandler (#6503)Richard van der Hoff2019-12-161-6/+95
| | |/ | |/| | | | | | | | | | This is a non-functional refactor as a precursor to some other work.
* | | Exclude rejected state events when calculating state at backwards extrems ↵Andrew Morgan2020-03-191-1/+1
|\ \ \ | | |/ | |/| | | | | | | | | | | | | (#6527) * commit '6920d8889': Exclude rejected state events when calculating state at backwards extrems (#6527)
| * | Exclude rejected state events when calculating state at backwards extrems ↵Richard van der Hoff2019-12-161-1/+1
| | | | | | | | | | | | | | | (#6527) This fixes a weird bug where, if you were determined enough, you could end up with a rejected event forming part of the state at a backwards-extremity. Authing that backwards extrem would then lead to us trying to pull the rejected event from the db (with allow_rejected=False), which would fail with a 404.
* | | Persist auth/state events at backwards extremities when we fetch them (#6526)Andrew Morgan2020-03-191-167/+80
|\| | | | | | | | | | | | | | * commit 'bc7de8765': Persist auth/state events at backwards extremities when we fetch them (#6526)
| * | Persist auth/state events at backwards extremities when we fetch them (#6526)Richard van der Hoff2019-12-161-167/+80
| | | | | | | | | The main point here is to make sure that the state returned by _get_state_in_room has been authed before we try to use it as state in the room.
* | | sanity-checking for events used in state res (#6531)Andrew Morgan2020-03-191-0/+1
|\| | | | | | | | | | | | | | * commit '1da15f05f': sanity-checking for events used in state res (#6531)
| * | sanity-checking for events used in state res (#6531)Richard van der Hoff2019-12-131-0/+1
| | | | | | | | | | | | | | | | | | | | | When we perform state resolution, check that all of the events involved are in the right room.
* | | Merge pull request #6496 from matrix-org/erikj/initial_sync_asnycAndrew Morgan2020-03-191-52/+44
|\| | | | | | | | | | | | | | | | | * commit 'caa52836e': Newsfile Port synapse.handlers.initial_sync to async/await
| * | Merge pull request #6496 from matrix-org/erikj/initial_sync_asnycErik Johnston2019-12-131-52/+44
| |\ \ | | | | | | | | Port synapse.handlers.initial_sync to async/await
| | * \ Merge branch 'develop' of github.com:matrix-org/synapse into ↵Erik Johnston2019-12-118-236/+452
| | |\ \ | | | | | | | | | | | | | | | erikj/initial_sync_asnyc
| | * | | Port synapse.handlers.initial_sync to async/awaitErik Johnston2019-12-091-52/+44
| | | | |
* | | | | look up cross-signing keys from the DB in bulk (#6486)Andrew Morgan2020-03-191-8/+27
|\| | | | | | | | | | | | | | | | | | | | | | | | * commit 'cb2db1799': look up cross-signing keys from the DB in bulk (#6486)
| * | | | look up cross-signing keys from the DB in bulk (#6486)Hubert Chathi2019-12-121-8/+27
| | | | |
* | | | | Check the room_id of events when fetching room state/auth (#6524)Andrew Morgan2020-03-191-23/+51
|\| | | | | | | | | | | | | | | | | | | | | | | | * commit '25f124432': Check the room_id of events when fetching room state/auth (#6524)
| * | | | Check the room_id of events when fetching room state/auth (#6524)Richard van der Hoff2019-12-121-23/+51
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we request the state/auth_events to populate a backwards extremity (on backfill or in the case of missing events in a transaction push), we should check that the returned events are in the right room rather than blindly using them in the room state or auth chain. Given that _get_events_from_store_or_dest takes a room_id, it seems clear that it should be sanity-checking the room_id of the requested events, so let's do it there.
* | | | Add `include_event_in_state` to _get_state_for_room (#6521)Andrew Morgan2020-03-191-22/+28
|\| | | | | | | | | | | | | | | | | | | * commit '204535651': Add `include_event_in_state` to _get_state_for_room (#6521)