- Feb 11, 2021
-
-
Patrick Cloke authored
This breaks some people's configurations (if their Client-Server API is not accessed via port 443).
-
- Feb 03, 2021
-
-
Patrick Cloke authored
-
Richard van der Hoff authored
* fix validation and don't use built-in validation UI Co-authored-by:
Bruno Windels <brunow@element.io>
-
Erik Johnston authored
-
- Feb 02, 2021
-
-
Erik Johnston authored
-
Travis Ralston authored
This could arguably replace the existing admin API for `/members`, however that is out of scope of this change. This sort of endpoint is ideal for moderation use cases as well as other applications, such as needing to retrieve various bits of information about a room to perform a task (like syncing power levels between two places). This endpoint exposes nothing more than an admin would be able to access with a `select *` query on their database.
-
Richard van der Hoff authored
-
- Feb 01, 2021
-
-
Richard van der Hoff authored
-
Oliver Hanikel authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
fixes #9171
-
Patrick Cloke authored
* Fixes a case where no summary text was returned. * The use of messages_from_person vs. messages_from_person_and_others was tweaked to depend on whether there was 1 sender or multiple senders, not based on if there was 1 room or multiple rooms.
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Jan Christian Grünhage authored
Signed-off-by:
Jan Christian Grünhage <jan.christian@gruenhage.xyz>
-
Andrew Morgan authored
Context, Fixes: https://github.com/matrix-org/synapse/issues/9263 In the past to fix an issue with old Riots re-requesting threepid validation tokens, we raised a `LoginError` during UIA instead of `InteractiveAuthIncompleteError`. This is now breaking the way Tchap logs in - which isn't standard, but also isn't disallowed by the spec. An easy fix is just to remove the 4 year old workaround.
-
Richard van der Hoff authored
There's some prelimiary work here to pull out the construction of a jinja environment to a separate function. I wanted to load the template at display time rather than load time, so that it's easy to update on the fly. Honestly, I think we should do this with all our templates: the risk of ending up with malformed templates is far outweighed by the improved turnaround time for an admin trying to update them.
-
Richard van der Hoff authored
-
Richard van der Hoff authored
Fixes #8966. * Factor out build_synapse_client_resource_tree Start a function which will mount resources common to all workers. * Move sso init into build_synapse_client_resource_tree ... so that we don't have to do it for each worker * Fix SSO-login-via-a-worker Expose the SSO login endpoints on workers, like the documentation says. * Update workers config for new endpoints Add documentation for endpoints recently added (#8942, #9017, #9262) * remove submit_token from workers endpoints list this *doesn't* work on workers (yet). * changelog * Add a comment about the odd path for SAML2Resource
-
Richard van der Hoff authored
There are going to be a couple of paths to get to the final step of SSO reg, and I want the URL in the browser to consistent. So, let's move the final step onto a separate path, which we redirect to.
-
- Jan 30, 2021
-
-
Ivan Shapovalov authored
* synapse.app.base: only call gc.freeze() on CPython gc.freeze() is an implementation detail of CPython garbage collector, and notably does not exist on PyPy. Rather than playing whack-a-mole and skipping the call when under PyPy, simply restrict it to CPython because the whole gc module is implementation-defined. Signed-off-by:
Ivan Shapovalov <intelfx@intelfx.name>
-
- Jan 29, 2021
-
-
Erik Johnston authored
-
Dan Callahan authored
Adds note about updating dh-virtualenv once we drop support for Xenial. We can't update now, because it needs debhelper 12, while Xenial only backports 10. Signed-off-by:
Dan Callahan <danc@element.io>
-
- Jan 28, 2021
-
-
Erik Johnston authored
-
Erik Johnston authored
Reading from the config object is *slow*.
-
Patrick Cloke authored
This finishes adding type hints to the `synapse.handlers` module.
-
- Jan 27, 2021
-
-
Richard van der Hoff authored
-
Richard van der Hoff authored
We've decided to add a 'brand' field to help clients decide how to style the buttons. Also, fix up the allowed characters for idp_id, while I'm in the area.
-
Richard van der Hoff authored
-
Pankaj Yadav authored
-
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
Fixes #8928.
-
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
-
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).
-