- Nov 17, 2020
-
-
chagai95 authored
Signed-off-by:
Chagai Friedlander <chagai95@gmail.com>
-
Patrick Cloke authored
-
Erik Johnston authored
-
- Nov 16, 2020
-
-
Richard van der Hoff authored
Pass a Site into `make_request`
-
Richard van der Hoff authored
FakeChannel has everything we need, and this more accurately models the real flow.
-
Richard van der Hoff authored
-
Andrew Morgan authored
`_locally_reject_invite` generates an out-of-band membership event which can be passed to clients, but not other homeservers. This is used when we fail to reject an invite over federation. If this happens, we instead just generate a leave event locally and send it down /sync, allowing clients to reject invites even if we can't reach the remote homeserver. A similar flow needs to be put in place for rescinding knocks. If we're unable to contact any remote server from the room we've tried to knock on, we'd still like to generate and store the leave event locally. Hence the need to reuse, and thus generalise, this method. Separated from #6739.
-
Richard van der Hoff authored
-
Richard van der Hoff authored
The root resource isn't necessarily a JsonResource, so rename this method accordingly, and update a couple of test classes to use the method rather than directly manipulating self.resource.
-
Richard van der Hoff authored
Some tests want to set some custom HTTP request headers, so provide a way to do that before calling requestReceived().
-
- Nov 15, 2020
-
-
Richard van der Hoff authored
-
Richard van der Hoff authored
Where we want to render a request against a specific Resource, call the global make_request() function rather than the one in HomeserverTestCase, allowing us to pass in an appropriate `Site`.
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
- Nov 14, 2020
-
-
Adrian Wannenmacher authored
Signed-off-by:
Adrian Wannenmacher <tfld@tfld.dev>
-
- Nov 13, 2020
-
-
Andrew Morgan authored
There's a handy function called maybe_store_room_on_invite which allows us to create an entry in the rooms table for a room and its version for which we aren't joined to yet, but we can reference when ingesting events about. This is currently used for invites where we receive some stripped state about the room and pass it down via /sync to the client, without us being in the room yet. There is a similar requirement for knocking, where we will eventually do the same thing, and need an entry in the rooms table as well. Thus, reusing this function works, however its name needs to be generalised a bit. Separated out from #6739.
-
Erik Johnston authored
-
Erik Johnston authored
-
Dirk Klimpel authored
Related to #8714. `event_reports.rst` was introduced in Synapse 1.21.0.
-
Marcus Schopen authored
add some mdui:UIInfo element examples for saml2_config in homeserver.yaml
-
chagai95 authored
Minor corrections and advice... Should help beginners.
-
Erik Johnston authored
The main use case is to see how many requests are being made, and how many are second/third/etc attempts. If there are large number of retries then that likely indicates a delivery problem.
-
Erik Johnston authored
If the script fails (or is CTRL-C'ed) between porting some of the events table and copying of the sequences then the port script will immediately die if run again due to the postgres DB having inconsistencies between sequences and tables. The fix is to move the porting of sequences to before porting the tables, so that there is never a period where the Postgres DB is inconsistent. To do that we need to change how we port the sequences so that it calculates the values from the SQLite DB rather than the Postgres DB. Fixes #8619
-
Erik Johnston authored
This should hopefully speed up `get_auth_chain_difference` a bit in the case of repeated state res on the same rooms. `get_auth_chain_difference` does a breadth first walk of the auth graphs by repeatedly looking up events' auth events. Different state resolutions on the same room will end up doing a lot of the same event to auth events lookups, so by caching them we should speed things up in cases of repeated state resolutions on the same room.
-
- Nov 12, 2020
-
-
Erik Johnston authored
`adbapi.ConnectionPool` let's you turn on auto reconnect of DB connections. This is off by default. As far as I can tell if its not enabled dead connections never get removed from the pool. Maybe helps #8574
-
- Nov 11, 2020
-
-
Erik Johnston authored
Fixes #8618
-
Erik Johnston authored
-
Will Hunt authored
* Check support room has only two users * Create 8728.bugfix * Update synapse/server_notices/server_notices_manager.py Co-authored-by:
Erik Johnston <erik@matrix.org> Co-authored-by:
Erik Johnston <erik@matrix.org>
-
Andrew Morgan authored
-
Nicolai Søborg authored
Signed-off-by:
Nicolai Søborg <git@xn--sb-lka.org>
-
- Nov 06, 2020
-
-
Marcus Schopen authored
If SSO login is used (e.g. SAML) in a multi worker setup, it should be mentioned that currently all SAML logins must run on the same worker, see https://github.com/matrix-org/synapse/issues/7530 Also, if you are using different ports (for example 443 and 8448) in a reverse proxy for client and federation, the path `/_matrix/media` on the client and federation port must point to the listener of the `media_repository` worker, otherwise you'll get a 404 on the federation port for the path `/_matrix/media`, if a remote server is trying to get the media object on federation port, see https://github.com/matrix-org/synapse/issues/8695
-
Andrew Morgan authored
This PR adds some documentation that: * Describes who the audience for the `docs/`, `docs/dev/` and `docs/admin/` directories are, as well as Synapse's wiki page. * Stresses that we'd like all documentation to be down in markdown.
-
Richard van der Hoff authored
Fixes: ``` builtins.TypeError: _reload_logging_config() takes 1 positional argument but 2 were given ```
-
- Nov 05, 2020
-
-
Dirk Klimpel authored
Add `GET /_synapse/admin/v1/statistics/users/media` to get statisics about local media usage by users. Related to #6094 It is the first API for statistics. Goal is to avoid/reduce usage of sql queries like [Wiki analyzing Synapse](https://github.com/matrix-org/synapse/wiki/SQL-for-analyzing-Synapse-PostgreSQL-database-stats ) Signed-off-by:
Dirk Klimpel <dirk@klimpel.org>
-
Dirk Klimpel authored
Add `displayname` to Shared-Secret Registration for admins to `POST /_synapse/admin/v1/register`
-
- Nov 04, 2020
-
-
Andrew Morgan authored
I idly noticed that these lists were out of sync with each other, causing us to miss a table in a test case (`local_invites`). Let's consolidate this list instead to prevent this from happening in the future.
-
- Nov 03, 2020
-
-
Dirk Klimpel authored
Fixes #8550
-
Erik Johnston authored
Fixes #4042
-