- Jan 27, 2021
-
-
Patrick Cloke authored
* Enables autoescape by default for HTML files. * Adds a new read_template method for reading a single template. * Some logic clean-up.
-
Erik Johnston authored
-
Richard van der Hoff authored
-
Andrew Morgan authored
Pass a dict, instead of None, to modules if a None config is specified in the homeserver config (#9229) If a Synapse module's config block were empty in YAML, thus being translated to a `Nonetype` in Python, then some modules could fail as that None ends up getting passed to their `parse_config` method. Modules are expected to accept a `dict` instead. This PR ensures that if the user does end up specifying an empty config block (such as what [the default oidc config in the sample config](https://github.com/matrix-org/synapse/blob/5310808d3bebd17275355ecd474bc013e8c7462d/docs/sample_config.yaml#L1816-L1845) states) then `None` is not passed to the module. An empty dict is passed instead. This code assumes that no existing modules are relying on receiving a `None` config block, but I'd really hope that they aren't.
-
- Jan 26, 2021
-
-
Patrick Cloke authored
With this change all handlers except the e2e_* ones have type hints enabled.
-
Patrick Cloke authored
The current configuration is handled for backwards compatibility, but is considered deprecated.
-
Erik Johnston authored
-
Patrick Cloke authored
Treat unknown encodings (according to lxml) as UTF-8 when generating a preview for HTML documents. This isn't fully accurate, but will hopefully give a reasonable title and summary.
-
Andrew Morgan authored
This new version no longer has the problem of adding/removing a blank line in `.pyi` files, which black disagrees with. This would cause `isort` to slightly modify `.pyi` files, before `black` would subsequently modify back directly afterwards. Relevant `isort` issue: https://github.com/pycqa/isort/issues/1284
-
Jason Robinson authored
Add forward extremities endpoint to rooms admin API
-
Erik Johnston authored
This is done by creating a custom `RedisFactory` subclass that periodically pings all connections in its pool. We also ensure that the `replyTimeout` param is non-null, so that we timeout waiting for the reply to those pings (and thus triggering a reconnect).
-
Jason Robinson authored
Signed-off-by:
Jason Robinson <jasonr@matrix.org>
-
Jason Robinson authored
# Conflicts: # synapse/rest/admin/__init__.py
-
Jason Robinson authored
Co-authored-by:
Erik Johnston <erik@matrix.org>
-
- Jan 25, 2021
-
-
Patrick Cloke authored
-
Patrick Cloke authored
-
Patrick Cloke authored
This expands the current shadow-banning feature to be usable via the admin API and adds documentation for it. A shadow-banned users receives successful responses to their client-server API requests, but the events are not propagated into rooms. Shadow-banning a user should be used as a tool of last resort and may lead to confusing or broken behaviour for the client.
-
Patrick Cloke authored
Co-authored-by:
Dan Callahan <danc@element.io> pip 21.0 stopped supporting Python 3.5.
-
Richard van der Hoff authored
Synapse 1.26.0rc2 (2021-01-25) ============================== Bugfixes -------- - Fix receipts and account data not being sent down sync. Introduced in v1.26.0rc1. ([\#9193](https://github.com/matrix-org/synapse/issues/9193), [\#9195](https://github.com/matrix-org/synapse/issues/9195)) - Fix chain cover update to handle events with duplicate auth events. Introduced in v1.26.0rc1. ([\#9210](https://github.com/matrix-org/synapse/issues/9210)) Internal Changes ---------------- - Add an `oidc-` prefix to any `idp_id`s which are given in the `oidc_providers` configuration. ([\#9189](https://github.com/matrix-org/synapse/issues/9189)) - Bump minimum `psycopg2` version to v2.8. ([\#9204](https://github.com/matrix-org/synapse/issues/9204))
-
Patrick Cloke authored
Co-authored-by:
Dan Callahan <danc@element.io> pip 21.0 stopped supporting Python 3.5.
-
Jason Robinson authored
-
Patrick Cloke authored
Synapse 1.26.0rc2 (2021-01-25) ============================== Bugfixes -------- - Fix receipts and account data not being sent down sync. Introduced in v1.26.0rc1. ([\#9193](https://github.com/matrix-org/synapse/issues/9193), [\#9195](https://github.com/matrix-org/synapse/issues/9195)) - Fix chain cover update to handle events with duplicate auth events. Introduced in v1.26.0rc1. ([\#9210](https://github.com/matrix-org/synapse/issues/9210)) Internal Changes ---------------- - Add an `oidc-` prefix to any `idp_id`s which are given in the `oidc_providers` configuration. ([\#9189](https://github.com/matrix-org/synapse/issues/9189)) - Bump minimum `psycopg2` version to v2.8. ([\#9204](https://github.com/matrix-org/synapse/issues/9204))
-
Patrick Cloke authored
-
Patrick Cloke authored
Treat the content as untrusted and do not assume it is of the proper form.
-
- Jan 23, 2021
-
-
Jason Robinson authored
-
Jason Robinson authored
Also add a warning on the admin API documentation. Signed-off-by:
Jason Robinson <jasonr@matrix.org>
-
- Jan 22, 2021
-
-
Erik Johnston authored
-
Erik Johnston authored
As we use `execute_values` with the `fetch` parameter.
-
- Jan 21, 2021
-
-
Patrick Cloke authored
If no thumbnail of the requested type exists, return a 404 instead of erroring. This doesn't quite match the spec (which does not define what happens if no thumbnail can be found), but is consistent with what Synapse already does.
-
Andrew Morgan authored
The lists of source directories to lint between `tox.ini` and `lint.sh` became out of sync. This PR tightens them up and adds some comments reminding any future readers to keep the list in sync.
-
Erik Johnston authored
-
Erik Johnston authored
We have seen a failure mode here where if there are many in flight unfinished IDs then marking an ID as finished takes a lot of CPU (as calling deque.remove iterates over the list)
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
Introduced in #9104 This wasn't picked up by the tests as this is all fine the first time you run Synapse (after upgrading), but then when you restart the wrong value is pulled from `stream_positions`.
-
Erik Johnston authored
* Use execute_batch in more places * Newsfile
-
Dirk Klimpel authored
-
Richard van der Hoff authored
-