- Jul 16, 2020
-
-
Richard van der Hoff authored
Fix guest user registration with lots of client readers
-
Richard van der Hoff authored
I found these made pycharm have more of a clue as to what was going on in other places.
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
partly just to show it works, but alwo to remove a bit of code duplication.
-
Richard van der Hoff authored
-
Olivier Wilkinson (reivilibre) authored
It was correct at the time of our friend Jorik writing it (checking git blame), but the world has moved now and it is no longer a generator. Signed-off-by:
Olivier Wilkinson (reivilibre) <olivier@librepush.net>
-
- Jul 15, 2020
-
-
Patrick Cloke authored
-
Richard van der Hoff authored
When considering rooms to clean up in `delete_old_current_state_events`, skip rooms which we are creating, which otherwise look a bit like rooms we have left. Fixes #7834.
-
Erik Johnston authored
-
Patrick Cloke authored
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
* Fix client reader sharding tests * Newsfile * Fix typing * Update changelog.d/7853.misc Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com> * Move mocking of http_client to tests Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com>
-
Patrick Cloke authored
-
Patrick Cloke authored
-
Richard van der Hoff authored
As far as I can tell from the sentry logs, the only time this has actually done anything in the last two years is when we had two master workers running at once, and even then, it made a bit of a mess of it (see https://github.com/matrix-org/synapse/issues/7845#issuecomment-658238739). Generally I feel like this code is doing more harm than good.
-
- Jul 14, 2020
-
-
Patrick Cloke authored
-
Brendan Abolivier authored
-
Dirk Klimpel authored
The Delete Room admin API allows server admins to remove rooms from server and block these rooms. `DELETE /_synapse/admin/v1/rooms/<room_id>` It is a combination and improvement of "[Shutdown room](https://github.com/matrix-org/synapse/blob/develop/docs/admin_api/shutdown_room.md)" and "[Purge room](https://github.com/matrix-org/synapse/blob/develop/docs/admin_api/purge_room.md)" API. Fixes: #6425 It also fixes a bug in [synapse/storage/data_stores/main/room.py](synapse/storage/data_stores/main/room.py) in ` get_room_with_stats`. It should return `None` if the room is unknown. But it returns an `IndexError`. https://github.com/matrix-org/synapse/blob/901b1fa561e3cc661d78aa96d59802cf2078cb0d/synapse/storage/data_stores/main/room.py#L99-L105 Related to: - #5575 - https://github.com/Awesome-Technologies/synapse-admin/issues/17 Signed-off-by:
Dirk Klimpel <dirk@klimpel.org>
-
Patrick Cloke authored
-
Patrick Cloke authored
-
Luke Faraone authored
I'm tempted to remove this section entirely, but it's helpful for admins who are trying to figure out why their Synapse is crashing on start with ACME errors. Signed-off-by:
Luke W Faraone <luke@faraone.cc>
-
Erik Johnston authored
We didn't do this for e.g. registration emails.
-
- Jul 13, 2020
-
-
Patrick Cloke authored
-
Brendan Abolivier authored
Fixes https://github.com/matrix-org/synapse/issues/7821, introduced in https://github.com/matrix-org/synapse/pull/7639 Turns out PyYAML translates `off` into a `False` boolean if it's unquoted (see https://stackoverflow.com/questions/36463531/pyyaml-automatically-converting-certain-keys-to-boolean-values), which seems to be a liberal interpretation of this bit of the YAML spec: https://yaml.org/spec/1.1/current.html#id864510 An alternative fix would be to implement the solution mentioned in the SO post linked above, but I'm aware it might break existing setups (which might use these values in the configuration file) so it's probably better just to add an extra check for this one. We should be aware that this is a thing for the next times we do that though. I didn't find any other occurrence of this bug elsewhere in the codebase.
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
- Jul 10, 2020
-
-
Patrick Cloke authored
-
Patrick Cloke authored
-
Sorunome authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Erik Johnston authored
-
Erik Johnston authored
The replication client requires that arguments are given as keyword arguments, which was not done in this case. We also pull out the logic so that we can catch and handle any exceptions raised, rather than leaving them unhandled.
-
Erik Johnston authored
When fetching the state of a room over federation we receive the event IDs of the state and auth chain. We then fetch those events that we don't already have. However, we used a function that recursively fetched any missing auth events for the fetched events, which can lead to a lot of recursion if the server is missing most of the auth chain. This work is entirely pointless because would have queued up the missing events in the auth chain to be fetched already. Let's just diable the recursion, since it only gets called from one place anyway.
-