| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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
|
| |\ \
| | |/
| |/| |
Add mention and warning about ACME v1 deprecation to the TLS config
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'fe3941f6e':
Stop sending events when creating or deleting aliases (#6904)
|
| | |
| | |
| | | |
Stop sending events when creating or deleting associations (room aliases). Send an updated canonical alias event if one of the alt_aliases is deleted.
|
|\| |
| | |
| | |
| | |
| | | |
* commit '3404ad289':
Raise the default power levels for invites, tombstones and server acls (#6834)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | | |
* commit '49f877d32':
Filter the results of user directory searching via the spam checker (#6888)
|
| |/
| |
| | |
Add a method to the spam checker to filter the user directory results.
|
| |\ |
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'a92e703ab':
Reject device display names that are too long (#6882)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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.
|
|\ \ \
| | |/
| |/|
| | |
| | | |
* commit '01209382f':
filter out m.room.aliases from /sync state blocks (#6884)
|
| | |
| | |
| | | |
We forgot to filter out aliases from /sync state blocks as well as the timeline.
|
|\ \ \
| | |/
| |/|
| | |
| | | |
* commit '21db35f77':
Add support for putting fed user query API on workers (#6873)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'de2d26737':
Allow moving group read APIs to workers (#6866)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | | |
* commit '56ca93ef5':
Admin api to add an email address (#6789)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | | |
* commit '7765bf398':
Limit the number of events that can be requested when backfilling events (#6864)
|
| | |
| | |
| | | |
Limit the maximum number of events requested when backfilling events.
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'b0c8bdd49':
pass room version into FederationClient.send_join (#6854)
|
| | |
| | |
| | |
| | | |
... which allows us to sanity-check the create event.
|
|\| |
| | |
| | |
| | |
| | | |
* commit '99fcc9628':
Third party event rules Update (#6781)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'ed630ea17':
Reduce amount of logging at INFO level. (#6862)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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`
|
| |\ \
| | | |
| | | | |
pass room versions around
|
| | | | |
|
| |\ \ \
| | |/ /
| |/| /
| | |/
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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))
|
|\ \ \
| | |/
| |/|
| | |
| | | |
* commit 'a58860e48':
Check sender_key matches on inbound encrypted events. (#6850)
|
| | |
| | |
| | | |
If they don't then the device lists are probably out of sync.
|
|\| |
| | |
| | |
| | |
| | | |
* commit '6475382d8':
Fix detecting unknown devices from remote encrypted events. (#6848)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
We were looking at the wrong event type (`m.room.encryption` vs
`m.room.encrypted`).
Also fixup the duplicate `EvenTypes` entries.
Introduced in #6776.
|
|\ \ \
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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
...
|
| |\ \
| | | |
| | | | |
Port much of `synapse.handlers.federation` to async/await.
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | |/ |
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'b9391c957':
Add typing to SyncHandler (#6821)
|
| |/
| |
| |
| | |
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
|
|\|
| |
| |
| |
| | |
* commit '7f93eb190':
pass room_version into compute_event_signature (#6807)
|
| | |
|
|\|
| |
| |
| |
| |
| |
| | |
* commit '160522e32':
newsfile
Add `get_room_version` method
s/get_room_version/get_room_version_id/
|
| |\
| | |
| | | |
Make `get_room_version` return a RoomVersion object
|
| | |
| | |
| | |
| | |
| | | |
... to make way for a forthcoming get_room_version which returns a RoomVersion
object.
|
|\| |
| | |
| | |
| | |
| | | |
* commit '7d846e870':
Fix bug with getting missing auth event during join 500'ed (#6810)
|
| |/ |
|
|\|
| |
| |
| |
| | |
* commit '46a446828':
pass room version into FederationHandler.on_invite_request (#6805)
|
| | |
|
|\|
| |
| |
| |
| | |
* commit 'b66032705':
Resync remote device list when detected as stale. (#6786)
|
| | |
|
|\|
| |
| |
| |
| |
| |
| |
| | |
* 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
|
| |
| |
| |
| |
| | |
Fixes a bug where the alias would be added, but `PUT /directory/room/<alias>`
would return a 403.
|
| | |
|
| |
| |
| |
| | |
I'm going to need another copy (hah!) of this.
|
|\|
| |
| |
| |
| | |
* commit '2cad8baa7':
Fix bug when querying remote user keys that require a resync. (#6796)
|
| |
| |
| |
| | |
We ended up only returning a single device, rather than all of them.
|
|\|
| |
| |
| |
| | |
* commit 'e17a11066':
Detect unknown remote devices and mark cache as stale (#6776)
|
| |
| |
| |
| | |
We just mark the fact that the cache may be stale in the database for
now.
|
|\|
| |
| |
| |
| | |
* commit 'a8ce7aeb4':
Pass room version object into event_auth.check and check_redaction (#6788)
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\|
| |
| |
| |
| | |
* commit '8df862e45':
Add `rooms.room_version` column (#6729)
|
| |
| |
| | |
This is so that we don't have to rely on pulling it out from `current_state_events` table.
|
|\|
| |
| |
| |
| | |
* commit '9f7aaf90b':
Validate client_secret parameter (#6767)
|
| | |
|
|\|
| |
| |
| |
| |
| |
| |
| | |
* commit 'ce84dd9e2':
Remove unnecessary abstractions in admin handler (#6751)
Fixup warning about workers changes
Add deprecation headers
Fixup changelog
|
| | |
|
|\|
| |
| |
| |
| |
| |
| | |
* commit 'a17f64361':
Add more logging around message retention policies support (#6717)
Fix up changelog
bump version to v1.9.0.dev2
|
| |
| |
| | |
So we can debug issues like #6683 more easily
|
|\|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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
|
| |\
| | |
| | | |
Fix instantiation of message retention purge jobs
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | | |
* commit '59dc87c61':
changelog
Log saml assertions rather than the whole response
move batch_iter to a separate module
|
| |\ \
| | | |
| | | | |
Log saml assertions rather than the whole response
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
... since the whole response is huge.
We even need to break up the assertions, since kibana otherwise truncates them.
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit '2b6a77fcd':
Delegate remote_user_id mapping to the saml mapping provider (#6723)
|
| |/ /
| | |
| | | |
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.
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'd386f2f33':
Add StateMap type alias (#6715)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | | |
* commit '48c3a9688':
Port synapse.replication.tcp to async/await (#6666)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Port synapse.replication.tcp to async/await
* Newsfile
* Correctly document type of on_<FOO> functions as async
* Don't be overenthusiastic with the asyncing....
|
|\| |
| | |
| | |
| | |
| | | |
* commit '28c98e51f':
Add `local_current_membership` table (#6655)
|
| |/
| |
| |
| |
| |
| |
| | |
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.
|
|\|
| |
| |
| |
| | |
* commit '326c893d2':
Kill off RegistrationError (#6691)
|
| |
| |
| | |
This is pretty pointless. Let's just use SynapseError.
|
|\|
| |
| |
| |
| | |
* commit '2d07c7377':
Don't assign numeric IDs for empty usernames (#6690)
|
| |
| |
| |
| | |
Fix a bug where we would assign a numeric userid if somebody tried registering
with an empty username
|
|\|
| |
| |
| |
| |
| |
| | |
* commit '3cfac9593':
changelog
Pass client redirect URL into SAML mapping providers
Pass the module_api into the SamlMappingProvider
|
| | |
|
| |
| |
| |
| |
| | |
... for consistency with other modules, and because we'll need it sooner or
later and it will be a pain to introduce later.
|
|\|
| |
| |
| |
| |
| | |
* commit 'd2906fe66':
Allow admin users to create or modify users without a shared secret (#6495)
Fixup changelog
|
| |
| |
| | |
Signed-off-by: Manuel Stahl <manuel.stahl@awesome-technologies.de>
|
|\|
| |
| |
| |
| | |
* commit 'be29ed7ad':
Correctly proxy remote group HTTP errors. (#6654)
|
| |
| |
| |
| |
| | |
e.g. if remote returns a 404 then that shouldn't be treated as an error
but should be proxied through.
|
|\|
| |
| |
| |
| |
| | |
* commit '0ab5853ec':
Changelog
Fix conditions failing if min_depth = 0
|
| |\
| | |
| | | |
Fix conditions failing if min_depth = 0
|
| | |
| | |
| | |
| | | |
This could result in Synapse not fetching prev_events for new events in the room if it has missed some events.
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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
|
| |\ \
| | | |
| | | | |
Remove a bunch of unused code from event creation
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
create_new_client_event
|
| | | |
| | | |
| | | |
| | | | |
... to make way for a new method which just returns the event ids
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit 'ba897a759':
Fix some test failures when frozen_dicts are enabled (#6642)
|
| | | |
| | | |
| | | |
| | | | |
Fixes #4026
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
(#6640)
* commit 'ab4b4ee6a':
Fix an error which was thrown by the PresenceHandler _on_shutdown handler. (#6640)
|
| |/ /
| | |
| | |
| | | |
(#6640)
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | | |
upgrade (#6633)
* commit '01c3c6c92':
Fix power levels being incorrectly set in old and new rooms after a room upgrade (#6633)
|
| |/
| |
| |
| |
| |
| | |
upgrade (#6633)
Modify a copy of an upgraded room's PL before sending to the new room
|
| |\ |
|
| | | |
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'fa780e972':
Change EventContext to use the Storage class (#6564)
|
| | | |
|
|\ \ \
| | |/
| |/|
| | |
| | | |
* commit '03d3792f3':
Fix exceptions when attempting to backfill (#6576)
|
| | |
| | |
| | | |
Fixes #6575
|
|\ \ \
| | |/
| |/|
| | |
| | | |
* commit '3d46124ad':
Port some admin handlers to async/await (#6559)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | |
| | | |
* commit '2284eb3a5':
Add database config class (#6513)
too many parens
|
| | |
| | |
| | |
| | |
| | | |
This encapsulates config for a given database and is the way to get new
connections.
|
| |\| |
|
|\| |
| | |
| | |
| | |
| | | |
* commit '02553901c':
Remove unused `get_pagination_rows` methods. (#6557)
|
| | |
| | |
| | | |
Remove unused get_pagination_rows methods
|
|\ \ \
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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
|
| |\ \
| | | |
| | | | |
Use the filtered version of an event when responding to /context requests for that event
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
|\ \ \ \
| | |_|/
| |/| |
| | | |
| | | | |
* commit 'bfb95654c':
Add option to allow profile queries without sharing a room (#6523)
|
| | | | |
|
|\ \ \ \
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | | |
(#6527)
* commit 'bbb75ff6e':
Exclude rejected state events when calculating state at backwards extrems (#6527)
|
| | | |
| | | |
| | | |
| | | |
| | | | |
(#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.
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit 'ff773ff72':
Persist auth/state events at backwards extremities when we fetch them (#6526)
|
| | | |
| | | |
| | | |
| | | | |
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.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
When we perform state resolution, check that all of the events involved are in
the right room.
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit '35bbe4ca7':
Check the room_id of events when fetching room state/auth (#6524)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit '20d5ba16e':
Add `include_event_in_state` to _get_state_for_room (#6521)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit 'be294d6fd':
Move get_state methods into FederationHandler (#6503)
|
| | |/
| |/|
| | |
| | |
| | | |
This is a non-functional refactor as a precursor to some other work.
|
|\ \ \
| | |/
| |/|
| | |
| | |
| | |
| | | |
(#6527)
* commit '6920d8889':
Exclude rejected state events when calculating state at backwards extrems (#6527)
|
| | |
| | |
| | |
| | |
| | | |
(#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.
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'bc7de8765':
Persist auth/state events at backwards extremities when we fetch them (#6526)
|
| | |
| | |
| | | |
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.
|
|\| |
| | |
| | |
| | |
| | | |
* commit '1da15f05f':
sanity-checking for events used in state res (#6531)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When we perform state resolution, check that all of the events involved are in
the right room.
|
|\| |
| | |
| | |
| | |
| | |
| | | |
* commit 'caa52836e':
Newsfile
Port synapse.handlers.initial_sync to async/await
|
| |\ \
| | | |
| | | | |
Port synapse.handlers.initial_sync to async/await
|
| | |\ \
| | | | |
| | | | |
| | | | | |
erikj/initial_sync_asnyc
|
| | | | | |
|
|\| | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* commit 'cb2db1799':
look up cross-signing keys from the DB in bulk (#6486)
|
| | | | | |
|
|\| | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* commit '25f124432':
Check the room_id of events when fetching room state/auth (#6524)
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit '204535651':
Add `include_event_in_state` to _get_state_for_room (#6521)
|
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* commit '894d2adda':
changelog
convert to async: FederationHandler._process_received_pdu
convert to async: FederationHandler._get_state_for_room
convert to async: FederationHandler.on_receive_pdu
Convert federation backfill to async
|
| |\ \ \
| | | | |
| | | | | |
Port some of FederationHandler to async/await
|
| | | | |
| | | | |
| | | | |
| | | | | |
also fix user_joined_room to consistently return deferreds
|
| | | | |
| | | | |
| | | | |
| | | | | |
... and _get_events_from_store_or_dest
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
and associated functions:
* on_receive_pdu
* handle_queued_pdus
* get_missing_events_for_pdu
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
PaginationHandler.get_messages is only called by RoomMessageListRestServlet,
which is async.
Chase the code path down from there:
- FederationHandler.maybe_backfill (and nested try_backfill)
- FederationHandler.backfill
|
|\| | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* commit '31905a518':
Newsfile
Port handlers.account_validity to async/await.
Port handlers.account_data to async/await.
|
| |\ \ \ \
| | |/ / /
| |/| | | |
Port handlers.account_validity to async/await.
|
| | | | | |
|
| | | |/
| | |/| |
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit '7c429f92d':
Clean up some logging (#6515)
|
| | | |
| | | |
| | | |
| | | | |
This just makes some of the logging easier to follow when things start going
wrong.
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit 'fc316a489':
Prevent redacted events from appearing in message search (#6377)
|
| | | | |
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit 'ea0f0ad41':
Prevent message search in upgraded rooms we're not in (#6385)
|
| | | | |
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit 'f8bc2ae88':
Move get_state methods into FederationHandler (#6503)
|
| | | |
| | | |
| | | |
| | | |
| | | | |
This is a non-functional refactor as a precursor to some other work.
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit '4947de5a1':
Allow SAML username provider plugins (#6411)
|
| | | | |
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* commit 'e3f528c54':
Newsfile
Remove SnapshotCache in favour of ResponseCache
|
| |\ \ \
| | |/ /
| |/| /
| | |/ |
Remove SnapshotCache in favour of ResponseCache
|
| | | |
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* commit 'adfdd82b2':
Back out perf regression from get_cross_signing_keys_from_cache. (#6494)
Fix comment
Fix port db script
Newsfile
Fixup tests
Move start up DB checks to main data store.
Pass Database into the data store
Move are_all_users_on_domain checks to main data store.
Change DataStores to accept 'database' param.
|
| |/
| |
| | |
Back out cross-signing code added in Synapse 1.5.0, which caused a performance regression.
|
|\|
| |
| |
| |
| |
| | |
* commit 'e1544b0af':
Newsfile
Pull out room_invite_state_types config option once.
|
| |\
| | |
| | | |
Pull out room_invite_state_types config option once.
|
| | |
| | |
| | |
| | | |
Pulling things out of config is currently surprisingly expensive.
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | | |
* commit 'a9b393340':
Fixup functions to consistently return deferreds
Newsfile
Port SyncHandler to async/await
|
| |\ \
| | |/
| |/| |
Port SyncHandler to async/await
|
| | | |
|
| | | |
|
|\| |
| | |
| | |
| | |
| | | |
* commit '649b6bc08':
Replace /admin/v1/users_paginate endpoint with /admin/v2/users (#5925)
|
| |/ |
|
|\|
| |
| |
| |
| | |
* commit '63d6ad106':
Stronger typing in the federation handler (#6480)
|
| |
| |
| |
| |
| | |
replace the event_info dict with an attrs thing
|
|\|
| |
| |
| |
| | |
* commit 'e1f4c83f4':
Sanity-check the rooms of auth events before pulling them in. (#6472)
|
| | |
|
|\|
| |
| |
| |
| |
| |
| | |
_update_auth_events_and_context_for_auth (#6468)
* commit 'e203874ca':
get rid of (most of) have_events from _update_auth_events_and_context_for_auth (#6468)
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
_update_auth_events_and_context_for_auth (#6468)
have_events was a map from event_id to rejection reason (or None) for events
which are in our local database. It was used as filter on the list of
event_ids being passed into get_events_as_list. However, since
get_events_as_list will ignore any event_ids that are unknown or rejected, we
can equivalently just leave it to get_events_as_list to do the filtering.
That means that we don't have to keep `have_events` up-to-date, and can use
`have_seen_events` instead of `get_seen_events_with_rejection` in the one place
we do need it.
|
|\|
| |
| |
| |
| |
| | |
* commit 'b9449012d':
Add changelog file
Issue #6406 Fix parameter mismatch
|
| |\
| | |
| | | |
Fix issue #6406 parameter mismatch
|
| | |
| | |
| | |
| | | |
Signed-off-by: Syam G Krishnan <syamgk01@gmail.com>
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* commit 'c530f9af4':
Un-remove room purge test
Incorporate review
Format changelog
Update changelog since this isn't going to be featured in 1.6.0
Also filter state events
Only filter if a filter was provided
Update copyright
Lint
Update copyrights
Changelog
Add tests for /search
Merge labels tests for /context and /messages
Add test case
Filter events_before and events_after in /context requests
|
| |\ \
| | | |
| | | | |
Filter state, events_before and events_after in /context requests
|
| | |\ \ |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
While the current version of the spec doesn't say much about how this endpoint uses filters (see https://github.com/matrix-org/matrix-doc/issues/2338), the current implementation is that some fields of an EventFilter apply (the ones that are used when running the SQL query) and others don't (the ones that are used by the filter itself) because we don't call event_filter.filter(...). This seems counter-intuitive and probably not what we want so this commit fixes it.
|
|\| | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* commit '54dd5dc12':
Add ephemeral messages support (MSC2228) (#6409)
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Implement part [MSC2228](https://github.com/matrix-org/matrix-doc/pull/2228). The parts that differ are:
* the feature is hidden behind a configuration flag (`enable_ephemeral_messages`)
* self-destruction doesn't happen for state events
* only implement support for the `m.self_destruct_after` field (not the `m.self_destruct` one)
* doesn't send synthetic redactions to clients because for this specific case we consider the clients to be able to destroy an event themselves, instead we just censor it (by pruning its JSON) in the database
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit '72078e4be':
Transfer power level state events on room upgrade (#6237)
|
| | |/
| |/| |
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* commit '81731c6e7':
Fix: Pillow error when uploading RGBA image (#3325) (#6241)
Add User-Interactive Auth to /account/3pid/add (#6119)
Lint
Changelog
Discard retention policies when retrieving state
blacklist more tests
Newsfile
Add tests
Propagate reason in remotely rejected invites
MSC2367 Allow reason field on all member events
|
| |\ \
| | | |
| | | | |
Implement MSC 2367 - Membership Reasons
|
| | | | |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Purge jobs don't delete the latest event in a room in order to keep the forward extremity and not break the room. On the other hand, get_state_events, when given an at_token argument calls filter_events_for_client to know if the user can see the event that matches that (sync) token. That function uses the retention policies of the events it's given to filter out those that are too old from a client's view.
Some clients, such as Riot, when loading a room, request the list of members for the latest sync token it knows about, and get confused to the point of refusing to send any message if the server tells it that it can't get that information. This can happen very easily with the message retention feature turned on and a room with low activity so that the last event sent becomes too old according to the room's retention policy.
An easy and clean fix for that issue is to discard the room's retention policies when retrieving state.
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'a9c44d400':
Remove local threepids on account deactivation (#6426)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | | |
* commit '0d27aba90':
add etag and count to key backup endpoints (#5858)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* commit 'd31f69afa':
clean up buildkite output
Don't restrict the tests to v1 rooms
Fix worker mode
Fix 3PID invite exchange
Lint again
Lint again
Lint
Don't apply retention policy based filtering on state events
Implement per-room message retention policies
|