- May 17, 2022
-
-
SpiritCroc authored
badge_count_last_call was always zero when the response for push notifications included a "rejected" key which mapped to an empty list.
-
David Robertson authored
-
Erik Johnston authored
For workers that rarely write to the cache the `get_all_updated_caches` query can become expensive if the worker falls behind when reading the cache.
-
Erik Johnston authored
-
David Robertson authored
-
- May 16, 2022
-
-
David Robertson authored
Co-authored-by:
Sean Quah <8349537+squahtx@users.noreply.github.com>
-
Andrew Morgan authored
-
Andrew Morgan authored
This reverts commit e24c11af. whoops...
-
Andrew Morgan authored
-
Andrew Morgan authored
-
Erik Johnston authored
-
Šimon Brandner authored
A minor optimization to avoid unnecessary copying/building identical dictionaries when filtering private read receipts. Also clarifies comments and cleans-up some tests.
-
David Robertson authored
Synapse 1.59.0rc2 (2022-05-16) ============================== Synapse 1.59 makes several changes that server administrators should be aware of: - Device name lookup over federation is now disabled by default. ([\#12616](https://github.com/matrix-org/synapse/issues/12616)) - The `synapse.app.appservice` and `synapse.app.user_dir` worker application types are now deprecated. ([\#12452](https://github.com/matrix-org/synapse/issues/12452), [\#12654](https://github.com/matrix-org/synapse/issues/12654)) See [the upgrade notes](https://github.com/matrix-org/synapse/blob/develop/docs/upgrade.md#upgrading-to-v1590) for more details. Additionally, this release removes the non-standard `m.login.jwt` login type from Synapse. It can be replaced with `org.matrix.login.jwt` for identical behaviour. This is only used if `jwt_config.enabled` is set to `true` in the configuration. ([\#12597](https://github.com/matrix-org/synapse/issues/12597)) Bugfixes -------- - Fix a bug introduced in Synapse 1.58.0 where `/sync` would fail if the most recent event in a room was rejected. ([\#12729](https://github.com/matrix-org/synapse/issues/12729))
-
Dirk Klimpel authored
-
Sean Quah authored
Signed-off-by:
Sean Quah <seanq@element.io>
-
Patrick Cloke authored
Parse the `m.relates_to` event content field (which describes relations) in a single place, this is used during: * Event persistence. * Validation of the Client-Server API. * Fetching bundled aggregations. * Processing of push rules. Each of these separately implement the logic and each made slightly different assumptions about what was valid. Some had minor / potential bugs.
-
David Robertson authored
-
Erik Johnston authored
* Fix bug /sync returning 404 Fixes #12571
-
- May 13, 2022
-
-
Shay authored
-
Till authored
-
Brendan Abolivier authored
-
David Robertson authored
-
Jess Porter authored
* add Measure blocks all over SpamChecker Signed-off-by:
jesopo <github@lolnerd.net> * fix test_spam_checker_may_join_room and test_threepid_invite_spamcheck * better changelog entry
-
Niklas authored
* Update openid.md Newer versions of keycloak returning a 404 when using the `/auth` prefix. Related: https://github.com/matrix-org/synapse/issues/12714
-
- May 12, 2022
-
-
Andrew Morgan authored
-
David Robertson authored
-
Andy Balaam authored
Co-authored-by:
Matthew Hodgson <matthew@matrix.org>
-
Andrew Morgan authored
-
- May 11, 2022
-
-
Sean Quah authored
Enable cancellation of `GET /rooms/$room_id/members`, `GET /rooms/$room_id/state` and `GET /rooms/$room_id/state/$state_key/*` requests. Signed-off-by:
Sean Quah <seanq@element.io>
-
David Robertson authored
-
Sean Quah authored
`BaseFederationServlet` wraps its endpoints in a bunch of async code that has not been vetted for compatibility with cancellation. Fail CI if a `@cancellable` flag is applied to a federation endpoint. Signed-off-by:
Sean Quah <seanq@element.io>
-
David Robertson authored
-
Sean Quah authored
While `ReplicationEndpoint`s register themselves via `JsonResource`, they pass a method that calls the handler, instead of the handler itself, to `register_paths`. As a result, `JsonResource` will not correctly pick up the `@cancellable` flag and we have to apply it ourselves. Signed-off-by:
Sean Quah <seanq@element.io>
-
Sean Quah authored
Both `RestServlet`s and `BaseFederationServlet`s register their handlers with `HttpServer.register_paths` / `JsonResource.register_paths`. Update `JsonResource` to respect the `@cancellable` flag on handlers registered in this way. Although `ReplicationEndpoint` also registers itself using `register_paths`, it does not pass the handler method that would have the `@cancellable` flag directly, and so needs separate handling. Signed-off-by:
Sean Quah <seanq@element.io>
-
Sean Quah authored
`DirectServeHtmlResource` and `DirectServeJsonResource` both inherit from `_AsyncResource`. These classes expect to be subclassed with `_async_render_*` methods. This commit has no effect on `JsonResource`, despite inheriting from `_AsyncResource`. `JsonResource` has its own `_async_render` override which will need to be updated separately. Signed-off-by:
Sean Quah <seanq@element.io>
-
Patrick Cloke authored
It simply passes through to `BulkPushRuleEvaluator`, which can be called directly instead.
-
Eric Eastwood authored
Fix https://github.com/matrix-org/synapse/issues/12678 Complement test added: https://github.com/matrix-org/complement/pull/369 **Before:** 500 internal server error **After:** According to the [spec](https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3roomsroomidmessages), calling `/messages` against a non-existent `room_id` should throw a 403 forbidden (since you're not part of the room). This also matches the behavior before https://github.com/matrix-org/synapse/pull/12370 which regressed Synapse to the 500 behavior. ```json { "errcode": "M_FORBIDDEN", "error": "User @test:my.synapse.server not in room !dne:my.synapse.server, and room previews are disabled" } ```
-
- May 10, 2022
-
-
Erik Johnston authored
Refactor how the `EventContext` class works, with the intention of reducing the amount of state we fetch from the DB during event processing. The idea here is to get rid of the cached `current_state_ids` and `prev_state_ids` that live in the `EventContext`, and instead defer straight to the database (and its caching). One change that may have a noticeable effect is that we now no longer prefill the `get_current_state_ids` cache on a state change. However, that query is relatively light, since its just a case of reading a table from the DB (unlike fetching state at an event which is more heavyweight). For deployments with workers this cache isn't even used. Part of #12684
-