| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
We seem to have some duplicates, which could do with being cleared out.
|
| |
| |
| | |
The aim here is to move the command handling out of the TCP protocol classes and to also merge the client and server command handling (so that we can reuse them for redis protocol). This PR simply moves the client paths to the new `ReplicationCommandHandler`, a future PR will move the server paths too.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Fixes #6815
Before figuring out whether we should alert a user on MAU, we call get_notice_room_for_user to get some info on the existing server notices room for this user. This function, if the room doesn't exist, creates it and invites the user in it. This means that, if we decide later that no server notice is needed, the user gets invited in a room with no message in it. This happens at every restart of the server, since the room ID returned by get_notice_room_for_user is cached.
This PR fixes that by moving the inviting bit to a dedicated function, that's only called when the server actually needs to send a notice to the user. A potential issue with this approach is that the room that's created by get_notice_room_for_user doesn't match how that same function looks for an existing room (i.e. it creates a room that doesn't have an invite or a join for the current user in it, so it could lead to a new room being created each time a user syncs), but I'm not sure this is a problem given it's cached until the server restarts, so that function won't run very often.
It also renames get_notice_room_for_user into get_or_create_notice_room_for_user to make what it does clearer.
|
| |\
| | |
| | | |
Only run one background update at a time
|
| | |
| | |
| | |
| | | |
returning a None or an int that we don't use is confusing.
|
| | |
| | |
| | |
| | |
| | | |
This mostly just reduces the amount of "running from sentinel context" spam
during unittest setup.
|
| | |
| | |
| | |
| | | |
(Almost) everywhere that uses it is happy with an awaitable.
|
| | |
| | |
| | |
| | | |
This was only used in a unit test, so let's just inline it in the test.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Occasionally we could get a federation device list update transaction which
looked like:
```
[
{'edu_type': 'm.device_list_update', 'content': {'user_id': '@user:test', 'device_id': 'D2', 'prev_id': [], 'stream_id': 12, 'deleted': True}},
{'edu_type': 'm.device_list_update', 'content': {'user_id': '@user:test', 'device_id': 'D1', 'prev_id': [12], 'stream_id': 11, 'deleted': True}},
{'edu_type': 'm.device_list_update', 'content': {'user_id': '@user:test', 'device_id': 'D3', 'prev_id': [11], 'stream_id': 13, 'deleted': True}}
]
```
Having `stream_ids` which are lower than `prev_ids` looks odd. It might work
(I'm not actually sure), but in any case it doesn't seem like a reasonable
thing to expect other implementations to support.
|
| |/ |
|
| |
| |
| |
| | |
make sure we clear out all but one update for the user
|
| |\
| | |
| | | |
Add tests for outbound device pokes
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
this is never set to anything other than "test", and is a source of unnecessary
boilerplate.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
That fallback sets the redirect URL to itself (so it can process the login
token then return gracefully to the client). This would make it pointless to
ask the user for confirmation, since the URL the confirmation page would be
showing wouldn't be the client's.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | | |
This changes the replication protocol so that the server does not send down `RDATA` for rows that happened before the client connected. Instead, the server will send a `POSITION` and clients then query the database (or master out of band) to get up to date.
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Pull Sentinel out of LoggingContext
... and drop a few unnecessary references to it
* Factor out LoggingContext.current_context
move `current_context` and `set_context` out to top-level functions.
Mostly this means that I can more easily trace what's actually referring to
LoggingContext, but I think it's generally neater.
* move copy-to-parent into `stop`
this really just makes `start` and `stop` more symetric. It also means that it
behaves correctly if you manually `set_log_context` rather than using the
context manager.
* Replace `LoggingContext.alive` with `finished`
Turn `alive` into `finished` and make it a bit better defined.
|
| |
| |
| |
| |
| | |
This just helps keep the rows closer to their streams, so that it's easier to
see what the format of each stream is.
|
| |
| |
| |
| |
| | |
Attempts to clarify the sample config for databases, and add some stuff about
tcp keepalives to `postgres.md`.
|
| |\
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Add 'device_lists_outbound_pokes' as extra table.
This makes sure we check all the relevant tables to get the current max
stream ID.
Currently not doing so isn't problematic as the max stream ID in
`device_lists_outbound_pokes` is the same as in `device_lists_stream`,
however that will change.
* Change device lists stream to have one row per id.
This will make it possible to process the streams more incrementally,
avoiding having to process large chunks at once.
* Change device list replication to match new semantics.
Instead of sending down batches of user ID/host tuples, send down a row
per entity (user ID or host).
* Newsfile
* Remove handling of multiple rows per ID
* Fix worker handling
* Comments from review
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
dinsic-release-v1.12.x
* 'dinsic' of github.com:matrix-org/synapse-dinsic:
Fixes an attribute error when using the default display name during registration. (#32)
Share SSL contexts for non-federation requests (#30)
Share SSL options for well-known requests (#29)
Fix buggy condition in account validity handler (#28)
|
| | | |
| | | |
| | | |
| | | |
| | | | |
* Share SSL contexts for non-federation requests
* newsfile
|
| | | | |
|
|\ \ \ \
| | |/ /
| |/| |
| | | |
| | | | |
* commit '4a17a647a':
Improve get auth chain difference algorithm. (#7095)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
It was originally implemented by pulling the full auth chain of all
state sets out of the database and doing set comparison. However, that
can take a lot work if the state and auth chains are large.
Instead, lets try and fetch the auth chains at the same time and
calculate the difference on the fly, allowing us to bail early if all
the auth chains converge. Assuming that the auth chains do converge more
often than not, this should improve performance. Hopefully.
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit 'c37db0211':
Share SSL contexts for non-federation requests (#7094)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Extends #5794 etc to the SimpleHttpClient so that it also applies to non-federation requests.
Fixes #7092.
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit '60724c46b':
Remove special casing of `m.room.aliases` events (#7034)
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
(#7053)"
This reverts commit 54dd28621b070ca67de9f773fe9a89e1f4dc19da, reversing
changes made to 6640460d054e8f4444046a34bdf638921b31c01e.
|
| |\ \ \ |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | |/
| | |/| |
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
room ver. (#7037)
* commit '06eb5cae0':
Remove special auth and redaction rules for aliases events in experimental room ver. (#7037)
|
| | | |
| | | |
| | | |
| | | | |
room ver. (#7037)
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit '1d66dce83':
Break down monthly active users by appservice_id (#7030)
|
| | | |
| | | |
| | | |
| | | |
| | | | |
* Break down monthly active users by appservice_id and emit via prometheus.
Co-authored-by: Brendan Abolivier <babolivier@matrix.org>
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit '13892776e':
Allow deleting an alias if the user has sufficient power level (#6986)
|
| | | | |
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* commit '8ef8fb2c1':
Read the room version from database when fetching events (#6874)
Update debian changelog
|
| | | |
| | | |
| | | |
| | | |
| | | | |
This is a precursor to giving EventBase objects the knowledge of which room version they belong to.
|
| |\ \ \ |
|
|\ \ \ \ \
| | |/ / /
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* 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
|
| | | | | |
|
| |\ \ \ \ |
|
| | | | | | |
|
|\ \ \ \ \ \
| | |_|/ / /
| |/| | | |
| | | | | |
| | | | | | |
* commit '7dcbc33a1':
Validate the alt_aliases property of canonical alias events (#6971)
|
| | |_|/ /
| |/| | | |
|
|\| | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* commit '3ab8e9c29':
Fix py35-old CI by using native tox. (#7018)
remove spurious changelog
rst->md
|
|\ \ \ \ \
| | |_|/ /
| |/| | |
| | | | |
| | | | | |
* commit 'bbeee33d6':
Fixed set a user as an admin with the new API (#6928)
|
| | |/ /
| |/| |
| | | |
| | | | |
Fix #6910
|
|\ \ \ \
| | |/ /
| |/| |
| | | |
| | | | |
* commit '9b06d8f8a':
Fixed set a user as an admin with the new API (#6928)
|
| | | |
| | | |
| | | | |
Fix #6910
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit 'cab4a5253':
set worker_app for frontend proxy test (#7003)
|
| | | |
| | | |
| | | | |
to stop the federationhandler trying to do master stuff
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit '3e99528f2':
Store room version on invite (#6983)
|
| | | |
| | | |
| | | |
| | | |
| | | | |
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...
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit '1f773eec9':
Port PresenceHandler to async/await (#6991)
|
| | | | |
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
handling of call to deactivate user (#6990)
* commit '8c75b621b':
Ensure 'deactivated' parameter is a boolean on user admin API, Fix error handling of call to deactivate user (#6990)
|
| | | |
| | | |
| | | |
| | | | |
handling of call to deactivate user (#6990)
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit 'bbf8886a0':
Merge worker apps into one. (#6964)
|
| | | | |
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* commit '509e381af':
Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957)
changelog
Increase MAX_EVENTS_BEHIND for replication clients
|
| | | |
| | | |
| | | |
| | | | |
Ensure good comprehension hygiene using flake8-comprehensions.
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* commit '2b37eabca':
Reduce auth chains fetched during v2 state res. (#6952)
update changes.md
|
| |/ /
| | |
| | |
| | |
| | |
| | | |
The state res v2 algorithm only cares about the difference between auth
chains, so we can pass in the known common state to the `get_auth_chain`
storage function so that it can ignore those events.
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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
|
| |\ \
| | | |
| | | | |
Make room alias lists peekable
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
As per
https://github.com/matrix-org/matrix-doc/pull/2432#pullrequestreview-360566830,
make room alias lists accessible to users outside world_readable rooms.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
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`.
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit '880aaac1d':
Move MSC2432 stuff onto unstable prefix (#6948)
|
| |/ /
| | |
| | | |
it's not in the spec yet, so needs to be unstable. Also add a feature flag for it. Also add a test for admin users.
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'adfaea8c6':
Implement GET /_matrix/client/r0/rooms/{roomId}/aliases (#6939)
|
| | |
| | |
| | |
| | |
| | | |
per matrix-org/matrix-doc#2432
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | | |
* commit '3f1cd1479':
changelog
Rewrite _EventInternalMetadata to back it with a _dict
Replace _event_dict_property with DictProperty
|
| |\ \
| | | |
| | | | |
Rewrite _EventInternalMetadata to back it with a dict
|
| | | |
| | | |
| | | |
| | | |
| | | | |
this amounts to the same thing, but replaces `_event_dict` with `_dict`, and
removes some of the function layers generated by `property`.
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* 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 '02e89021f':
Convert the directory handler tests to use HomeserverTestCase (#6919)
|
| |/ /
| | |
| | | |
Convert directory handler tests to use HomeserverTestCase.
|
|\| |
| | |
| | |
| | |
| | | |
* 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 'd8994942f':
Return a 404 for admin api user lookup if user not found (#6901)
Move the warning at the top of the release changes
|
| | | |
|
|\| |
| | |
| | |
| | |
| | | |
* 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 '799001f2c':
Add a `make_event_from_dict` method (#6858)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
... and use it in places where it's trivial to do so.
This will make it easier to pass room versions into the FrozenEvent
constructors.
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'b08b0a22d':
Add typing to synapse.federation.sender (#6871)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | | |
* commit '56ca93ef5':
Admin api to add an email address (#6789)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'e1b240329':
Pass room_version into `event_from_pdu_json`
|
| | |
| | |
| | |
| | | |
It's called from all over the shop, so this one's a bit messy.
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'b9391c957':
Add typing to SyncHandler (#6821)
|
| | |
| | |
| | |
| | | |
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* commit 'a5afdd15e':
changelog
Pass room_version into add_hashes_and_signatures
Pass room_version into create_local_event_from_event_dict
Store the room version in EventBuilder
|
| |\ \
| | | |
| | | | |
Pass room_version into add_hashes_and_signatures
|
| | | | |
|
| | | | |
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* commit '160522e32':
newsfile
Add `get_room_version` method
s/get_room_version/get_room_version_id/
|
| |/ /
| | |
| | |
| | |
| | | |
... to make way for a forthcoming get_room_version which returns a RoomVersion
object.
|
|\| |
| | |
| | |
| | |
| | | |
* commit '184303b86':
MSC2260: Block direct sends of m.room.aliases events (#6794)
|
| | |
| | |
| | |
| | |
| | | |
as per MSC2260
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'b66032705':
Resync remote device list when detected as stale. (#6786)
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Bump signedjson to 1.1
... so that we can use the type definitions
* Fix breakage caused by upgrade to signedjson 1.1
Thanks, @illicitonion...
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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
|
| | |
| | |
| | |
| | | |
I'm going to need another copy (hah!) of this.
|
|\| |
| | |
| | |
| | |
| | | |
* 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 'fa4d609e2':
Make 'event.redacts' never raise. (#6771)
Fixup changelog
Fixup changelog
Fixup changelog
|
| | |
| | |
| | |
| | |
| | |
| | | |
There are quite a few places that we assume that a redaction event has a
corresponding `redacts` key, which is not always the case. So lets
cheekily make it so that event.redacts just returns None instead.
|
|\| |
| | |
| | |
| | |
| | | |
* commit '90a28fb47':
Admin API to list, filter and sort rooms (#6720)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* commit 'ae6cf586b':
Lint + changelog
Remove unused import
Add tests for thumbnailing
Fix typo in _select_thumbnail
|
| | | |
|
| | | |
|
| | | |
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'aa9b00fb2':
Fix and add test to deprecated quarantine media admin api (#6756)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | | |
* commit '74b74462f':
Fix `/events/:event_id` deprecated API. (#6731)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'ceecedc68':
Fix changing password via user admin API. (#6730)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | | |
* commit '59dc87c61':
changelog
Log saml assertions rather than the whole response
move batch_iter to a separate module
|
| | |
| | |
| | |
| | |
| | |
| | | |
... since the whole response is huge.
We even need to break up the assertions, since kibana otherwise truncates them.
|
|\| |
| | |
| | |
| | |
| | | |
* 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 '19a1aac48':
Fix purge_room admin API (#6711)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | | |
* commit '8f5d7302a':
Implement RedirectException (#6687)
|
| | |
| | |
| | |
| | |
| | | |
Allow REST endpoint implemnentations to raise a RedirectException, which will
redirect the user's browser to a given location.
|
|\| |
| | |
| | |
| | |
| | | |
* 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 '1177d3f3a':
Quarantine media by ID or user ID (#6681)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | | |
* commit '326c893d2':
Kill off RegistrationError (#6691)
|
| | |
| | |
| | | |
This is pretty pointless. Let's just use SynapseError.
|
|\| |
| | |
| | |
| | |
| | |
| | | |
* 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 '7caaa29da':
Fix GET request on /_synapse/admin/v2/users endpoint (#6563)
|
| | |
| | |
| | |
| | | |
Fixes #6552
|
|\| |
| | |
| | |
| | |
| | | |
* commit '573fee759':
Back out ill-advised notary server hackery (#6657)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This was ill-advised. We can't modify verify_keys here, because the response
object has already been signed by the requested key.
Furthermore, it's somewhat unnecessary because existing versions of Synapse
(which get upset that the notary key isn't present in verify_keys) will fall
back to a direct fetch via `/key/v2/server`.
Also: more tests for fetching keys via perspectives: it would be nice if we actually tested when our fetcher can't talk to our notary impl.
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* commit 'd20c34654':
port BackgroundUpdateTestCase to HomeserverTestCase (#6653)
changelog
Fix exceptions in log when rejected event is replicated
async/await for SyncReplicationHandler.process_and_notify
Clarify documentation on get_event* methods
|
| | | |
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
... to make way for a new method which just returns the event ids
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit '4b36b482e':
Fix exception when fetching notary server's old keys (#6625)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Lift the restriction that *all* the keys used for signing v2 key responses be
present in verify_keys.
Fixes #6596.
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* commit '18674eebb':
Workaround for error when fetching notary's own key (#6620)
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Kill off redundant SynapseRequestFactory
We already get the Site via the Channel, so there's no need for a dedicated
RequestFactory: we can just use the right constructor.
* Workaround for error when fetching notary's own key
As a notary server, when we return our own keys, include all of our signing
keys in verify_keys.
This is a workaround for #6596.
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'b6b57ecb4':
Kill off redundant SynapseRequestFactory (#6619)
|
| | |
| | |
| | |
| | | |
We already get the Site via the Channel, so there's no need for a dedicated
RequestFactory: we can just use the right constructor.
|
|\| |
| | |
| | |
| | |
| | | |
* commit '75d8f26ac':
Split state groups into a separate data store (#6296)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'fa780e972':
Change EventContext to use the Storage class (#6564)
|
| | | |
|
|\| |
| | |
| | |
| | |
| | | |
* commit 'd6752ce5d':
Clean up startup for the pusher (#6558)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Remove redundant python2 support code
`str.decode()` doesn't exist on python3, so presumably this code was doing
nothing
* Filter out pushers with corrupt data
When we get a row with unparsable json, drop the row, rather than returning a
row with null `data`, which will then cause an explosion later on.
* Improve logging when we can't start a pusher
Log the ID to help us understand the problem
* Make email pusher setup more robust
We know we'll have a `data` member, since that comes from the database. What we
*don't* know is if that is a dict, and if that has a `brand` member, and if
that member is a string.
|
|\| |
| | |
| | |
| | |
| | |
| | | |
* 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 '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
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| |/ / /
| | | |
| | | |
| | | |
| | | | |
When we perform state resolution, check that all of the events involved are in
the right room.
|
|\ \ \ \
| | |/ /
| |/| |
| | | |
| | | | |
* commit 'bfb95654c':
Add option to allow profile queries without sharing a room (#6523)
|
| | | | |
|
|\| | |
| | | |
| | | |
| | | |
| | | | |
* 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 'cb2db1799':
look up cross-signing keys from the DB in bulk (#6486)
|
| | | | |
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* commit 'b8e4b39b6':
Add new config param to docstring and add types
Newsfile
Fix upgrade db script
Remove database config parsing from apps.
|
| |\ \ \
| | | | |
| | | | | |
Move database config from apps into HomeServer object
|
| | |/ / |
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* 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
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
and associated functions:
* on_receive_pdu
* handle_queued_pdus
* get_missing_events_for_pdu
|
|\| | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* 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 '40eda8493':
Fix race which caused deleted devices to reappear (#6514)
|
| | | |
| | | |
| | | |
| | | | |
Stop the `update_client_ips` background job from recreating deleted devices.
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* commit '35f3c366e':
Update comment
Newsfile
Fix make_deferred_yieldable to work with coroutines
|
| |\ \ \
| | | | |
| | | | | |
Fix `make_deferred_yieldable` to work with coroutines
|
| | |/ / |
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* 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.
|
| |\ \ \
| | |/ /
| |/| | |
Pass in Database object to data stores.
|
| | | | |
|
| | | | |
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* commit 'a9b393340':
Fixup functions to consistently return deferreds
Newsfile
Port SyncHandler to async/await
|
| |\ \ \
| | |/ /
| |/| | |
Port SyncHandler to async/await
|
| | | | |
|
| | | | |
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* commit 'f3ea2f5a0':
Remove unused var
Fix DB scripts
Newsfile
Move background update handling out of store
Comments
Move DB pool and helper functions into dedicated Database class
|
| |\| |
| | | |
| | | |
| | | | |
erikj/make_database_class
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | | |
* commit 'af5d0ebc7':
Newsfile
Fixup tests
Port rest/v1 to async/await
|
| |/ / |
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | | |
* commit 'ddbbfc951':
Newsfile
Remove underscore from SQLBaseStore functions
Don't call SQLBaseStore methods from outside stores
|
| | | |
|
|\| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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
|
| | | | |
|
| | |\ \
| | | | |
| | | | |
| | | | | |
into babolivier/context_filters
|
| | | |\ \ |
|
| | |\ \ \ \
| | | |/ / /
| | |/| | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|