- Dec 30, 2020
-
-
Andrew Morgan authored
The `RoomDirectoryFederationTests` tests were not being run unless explicitly called as an `__init__.py` file was not present in `tests/federation/transport/`. Thus the folder was not a python module, and `trial` did not look inside for any test cases to run. This was found while working on #6739. This PR adds a `__init__.py` and also fixes the test in a couple ways: - Switch to subclassing `unittest.FederatingHomeserverTestCase` instead, which sets up federation endpoints for us. - Supply a `federation_auth_origin` to `make_request` in order to more act like the request is coming from another server, instead of just an unauthenicated client requesting a federation endpoint. I found that the second point makes no difference to the test passing, but felt like the right thing to do if we're testing over federation.
-
- Dec 15, 2020
-
-
Richard van der Hoff authored
This was never used, so let's get rid of it.
-
- Nov 16, 2020
-
-
Richard van der Hoff authored
-
- Sep 18, 2020
-
-
reivilibre authored
Signed-off-by:
Olivier Wilkinson (reivilibre) <olivier@librepush.net> Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com> * Fix _set_destination_retry_timings This came about because the code assumed that retry_interval could not be NULL — which has been challenged by catch-up.
-
- Sep 15, 2020
-
-
reivilibre authored
-
- Sep 10, 2020
-
-
Patrick Cloke authored
-
- Sep 08, 2020
-
-
Patrick Cloke authored
-
- Sep 07, 2020
-
-
reivilibre authored
-
- Sep 04, 2020
-
-
reivilibre authored
Signed-off-by:
Olivier Wilkinson (reivilibre) <olivier@librepush.net>
-
Patrick Cloke authored
-
- Aug 27, 2020
-
-
Patrick Cloke authored
-
- Aug 13, 2020
-
-
Patrick Cloke authored
-
- Jul 30, 2020
-
-
Patrick Cloke authored
-
- Jul 28, 2020
-
-
lugino-emeritus authored
Fixes #7901. Signed-off-by:
Niklas Tittjung <nik_t.01@web.de>
-
- Jul 24, 2020
-
-
Patrick Cloke authored
-
- Jun 10, 2020
-
-
Andrew Morgan authored
Fixes https://github.com/matrix-org/synapse/issues/2431 Adds config option `encryption_enabled_by_default_for_room_type`, which determines whether encryption should be enabled with the default encryption algorithm in private or public rooms upon creation. Whether the room is private or public is decided based upon the room creation preset that is used. Part of this PR is also pulling out all of the individual instances of `m.megolm.v1.aes-sha2` into a constant variable to eliminate typos ala https://github.com/matrix-org/synapse/pull/7637 Based on #7637
-
- Jun 04, 2020
-
-
Andrew Morgan authored
@uhoreg has confirmed these were both typos. They are only in comments and tests though, rather than anything critical. Introduced in: * https://github.com/matrix-org/synapse/pull/7157 * https://github.com/matrix-org/synapse/pull/5726
-
- May 22, 2020
-
-
Erik Johnston authored
The idea here is that if an instance persists an event via the replication HTTP API it can return before we receive that event over replication, which can lead to races where code assumes that persisting an event immediately updates various caches (e.g. current state of the room). Most of Synapse doesn't hit such races, so we don't do the waiting automagically, instead we do so where necessary to avoid unnecessary delays. We may decide to change our minds here if it turns out there are a lot of subtle races going on. People probably want to look at this commit by commit.
-
- Apr 03, 2020
-
-
Richard van der Hoff authored
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.
-
- Mar 30, 2020
-
-
Richard van der Hoff authored
make sure we clear out all but one update for the user
-
- Mar 27, 2020
-
-
Richard van der Hoff authored
-
- Mar 24, 2020
-
-
Richard van der Hoff authored
this is never set to anything other than "test", and is a source of unnecessary boilerplate.
-
- Feb 21, 2020
-
-
Patrick Cloke authored
Ensure good comprehension hygiene using flake8-comprehensions.
-
- Feb 07, 2020
-
-
Richard van der Hoff authored
... 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.
-
- Dec 04, 2019
-
-
Neil Johnson authored
Ensure that the the default settings for the room directory are that the it is hidden from public view by default.
-
- Nov 27, 2019
-
-
Amber Brown authored
-
- Aug 20, 2019
-
-
Erik Johnston authored
-
- Jul 29, 2019
-
-
Amber Brown authored
-
- Jun 20, 2019
-
-
Amber Brown authored
-
- May 29, 2019
-
-
Amber Brown authored
-
- May 10, 2019
-
-
Amber Brown authored
-
- Mar 20, 2019
-
-
Richard van der Hoff authored
Rate-limit outgoing read-receipts as per #4730.
-
- Aug 10, 2018
-
-
black authored
-
- Jul 09, 2018
-
-
Amber Brown authored
-
- Jul 04, 2018
-
-
Richard van der Hoff authored
... as described at https://docs.google.com/document/d/1EttUVzjc2DWe2ciw4XPtNpUpIl9lWXGEsy2ewDS7rtw.
-
- Jan 26, 2016
-
-
Erik Johnston authored
-
- Jan 07, 2016
-
-
Matthew Hodgson authored
-
- Nov 17, 2015
-
-
Erik Johnston authored
-
- Apr 01, 2015
-
-
Erik Johnston authored
-
- Feb 11, 2015
-
-
Mark Haines authored
setup_test_homeserver function in utils.
-