| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | |/ |
|
|\| |
| | |
| | |
| | |
| | | |
* 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
|
| |\ \
| | | |
| | | | |
Implement message retention policies (MSC1763)
|
| | |\ \ |
|
| | | | | |
|
| | | | | |
|
| | | |/
| | |/| |
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* commit '651d930f1':
remove confusing fixme
newsfile
Use get_events_as_list rather than lots of calls to get_event
Update some docstrings and comments
Simplify _update_auth_events_and_context_for_auth
|
| |\ \ \
| | |_|/
| |/| | |
Refactor _update_auth_events_and_context_for_auth
|
| | | | |
|
| | |\ \ |
|
| | | | |
| | | | |
| | | | |
| | | | | |
It's more efficient and clearer.
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
move event_key calculation into _update_context_for_auth_events, since it's
only used there.
|
|\| | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* commit 'f9f1c8acb':
Fixup docs
Newsfile
Fix caching devices for remote servers in worker.
|
| |\ \ \ \
| | | | | |
| | | | | | |
Fix caching devices for remote servers in worker.
|
| | | |_|/
| | |/| |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
When the `/keys/query` API is hit on client_reader worker Synapse may
decide that it needs to resync some remote deivces. Usually this happens
on master, and then gets cached. However, that fails on workers and so
it falls back to fetching devices from remotes directly, which may in
turn fail if the remote is down.
|
|\| | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* commit '3916e1b97':
Clean up newline quote marks around the codebase (#6362)
update macOS installation instructions
|
| | | | | |
|
|\| | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* commit '83446a18f':
Lint
Apply suggestions from code review
Newsfile
Add failed auth ratelimiting to UIA
Only do `rc_login` ratelimiting on succesful login.
|
| |\ \ \ \
| | |_|_|/
| |/| | | |
Only do `rc_login` ratelimiting on succesful login.
|
| | | | |
| | | | |
| | | | |
| | | | | |
Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
Co-Authored-By: Brendan Abolivier <babolivier@matrix.org>
|
| | | | | |
|
| | |/ /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
We were doing this in a number of places which meant that some login
code paths incremented the counter multiple times.
It was also applying ratelimiting to UIA endpoints, which was probably
not intentional.
In particular, some custom auth modules were calling
`check_user_exists`, which incremented the counters, meaning that people
would fail to login sometimes.
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* commit '6e1b40dc2':
sample config
Add changelog
A couple more instances
Replace instance variations of homeserver with correct case/spacing
|
| | |/
| |/| |
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* commit 'f713c01e2':
Move type annotation into docstring
Fix deleting state groups during room purge.
Use correct type annotation
Change to not require a state_groups.room_id index.
Fix up comment
Update log line to lie a little less
Add state_groups.room_id index
Docstrings
Fix purge room API
Newsfile
Split purge API into events vs state
|
| |\ \
| | | |
| | | | |
Split purge API into events vs state and add PurgeEventsStorage
|
| | |\|
| | | |
| | | |
| | | | |
erikj/split_purge_history
|
| | |\ \
| | | | |
| | | | |
| | | | | |
erikj/split_purge_history
|
| | | | | |
|
|\| | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* commit 'e914cf12f':
tweak changelog
Re-add docstring, with caveats detailed
Transfer upgraded rooms on groups
|
| |\ \ \ \ |
|
| | | | | | |
|
| | | |_|/
| | |/| | |
|
|\| | | |
| | | | |
| | | | |
| | | | | |
(#6338)
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
|\| | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
(#6320)
* commit '807ec3bd9':
Fix bug which caused rejected events to be stored with the wrong room state (#6320)
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
(#6320)
Fixes a bug where rejected events were persisted with the wrong state group.
Also fixes an occasional internal-server-error when receiving events over
federation which are rejected and (possibly because they are
backwards-extremities) have no prev_group.
Fixes #6289.
|
|\| | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* commit '0e3ab8afd':
Add some checks that we aren't using state from rejected events (#6330)
|
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* Raise an exception if accessing state for rejected events
Add some sanity checks on accessing state_group etc for
rejected events.
* Skip calculating push actions for rejected events
It didn't actually cause any bugs, because rejected events get filtered out at
various later points, but there's not point in trying to calculate the push
actions for a rejected event.
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* commit 'f496d2587':
Incorporate review
Factor out an _AsyncEventContextImpl (#6298)
Update synapse/storage/data_stores/main/schema/delta/56/event_labels.sql
Add more data to the event_labels table and fix the indexes
Add unstable feature flag
Lint
Incorporate review
Lint
Changelog
Add integration tests for /messages
Add more integration testing
Add integration tests for sync
Add unit tests
Add index on label
Implement filtering
Store labels for new events
Add database table for keeping track of labels on events
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The intention here is to make it clearer which fields we can expect to be
populated when: notably, that the _event_type etc aren't used for the
synchronous impl of EventContext.
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit '1cb84c648':
Support for routing outbound HTTP requests via a proxy (#6239)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The `http_proxy` and `HTTPS_PROXY` env vars can be set to a `host[:port]` value which should point to a proxy.
The address of the proxy should be excluded from IP blacklists such as the `url_preview_ip_range_blacklist`.
The proxy will then be used for
* push
* url previews
* phone-home stats
* recaptcha validation
* CAS auth validation
It will *not* be used for:
* Application Services
* Identity servers
* Outbound federation
* In worker configurations, connections from workers to masters
Fixes #4198.
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit 'fe1f2b452':
Remove last usages of deprecated logging.warn method (#6314)
|
| | | | |
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit 'ace947e8d':
Depublish a room from the public rooms list when it is upgraded (#6232)
|
| | | | |
|