From 6ac575131fd02228f2c3d8dd4a2d268c344362b90c1bf05e52f50c7aa013cb91 Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Tue, 31 May 2022 16:55:06 +0000 Subject: [PATCH 1/2] Accepting request 980131 from home:darix:apps - Update to 1.60.0 OBS-URL: https://build.opensuse.org/request/show/980131 OBS-URL: https://build.opensuse.org/package/show/network:messaging:matrix/matrix-synapse?expand=0&rev=223 --- _service | 4 +- matrix-synapse-1.59.1.obscpio | 3 - matrix-synapse-1.60.0.obscpio | 3 + matrix-synapse-test.spec | 2 +- matrix-synapse.changes | 183 ++++++++++++++++++++++++++++++++++ matrix-synapse.obsinfo | 6 +- matrix-synapse.spec | 2 +- 7 files changed, 193 insertions(+), 10 deletions(-) delete mode 100644 matrix-synapse-1.59.1.obscpio create mode 100644 matrix-synapse-1.60.0.obscpio diff --git a/_service b/_service index 4cb47e6..9ffa763 100644 --- a/_service +++ b/_service @@ -4,11 +4,11 @@ @PARENT_TAG@ https://github.com/matrix-org/synapse.git git - v1.59.1 + v1.60.0 v(.*) \1 diff --git a/matrix-synapse-1.59.1.obscpio b/matrix-synapse-1.59.1.obscpio deleted file mode 100644 index 31f0bb4..0000000 --- a/matrix-synapse-1.59.1.obscpio +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:47d1de464e9bb05da59f674190c8bc1d38b134a443b9db9df601cb1a84d252da -size 33189389 diff --git a/matrix-synapse-1.60.0.obscpio b/matrix-synapse-1.60.0.obscpio new file mode 100644 index 0000000..dfb0ca9 --- /dev/null +++ b/matrix-synapse-1.60.0.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4b945b94d7f6fa93e06a449a08308782b8584a527f2bd5d322662000f4e905f4 +size 33331213 diff --git a/matrix-synapse-test.spec b/matrix-synapse-test.spec index 3b17e6d..1a47daa 100644 --- a/matrix-synapse-test.spec +++ b/matrix-synapse-test.spec @@ -27,7 +27,7 @@ %define pkgname matrix-synapse Name: %{pkgname}-test -Version: 1.59.1 +Version: 1.60.0 Release: 0 Summary: Test package for %{pkgname} License: Apache-2.0 diff --git a/matrix-synapse.changes b/matrix-synapse.changes index 7837630..013ddda 100644 --- a/matrix-synapse.changes +++ b/matrix-synapse.changes @@ -1,3 +1,186 @@ +------------------------------------------------------------------- +Fri May 27 12:23:18 UTC 2022 - Marcus Rueckert + +- Update to 1.60.0 + This release of Synapse adds a unique index to the + state_group_edges table, in order to prevent accidentally + introducing duplicate information (for example, because a + database backup was restored multiple times). If your Synapse + database already has duplicate rows in this table, this could + fail with an error and require manual remediation. + + Additionally, the signature of the check_event_for_spam module + callback has changed. The previous signature has been deprecated + and remains working for now. Module authors should update their + modules to use the new signature where possible. + + See the upgrade notes for more details. + https://github.com/matrix-org/synapse/blob/develop/docs/upgrade.md#upgrading-to-v1600 + + - Features + - Add an option allowing users to use their password to + reauthenticate for privileged actions even though password + login is disabled. (#12883) + - Measure the time taken in spam-checking callbacks and expose + those measurements as metrics. (#12513) + - Add a default_power_level_content_override config option to + set default room power levels per room preset. (#12618) + - Add support for MSC3787: Allowing knocks to restricted rooms. + (#12623) + - Send USER_IP commands on a different Redis channel, in order + to reduce traffic to workers that do not process these + commands. (#12672, #12809) + - Synapse will now reload cache config when it receives a + SIGHUP signal. (#12673) + - Add a config options to allow for auto-tuning of caches. + (#12701) + - Update MSC2716 implementation to process marker events from + the current state to avoid markers being lost in timeline + gaps for federated servers which would cause the imported + history to be undiscovered. (#12718) + - Add a drop_federated_event callback to SpamChecker to + disregard inbound federated events before they take up much + processing power, in an emergency. (#12744) + - Implement MSC3818: Copy room type on upgrade. (#12786, + #12792) + - Update to the check_event_for_spam module callback. Deprecate + the current callback signature, replace it with a new + signature that is both less ambiguous (replacing booleans + with explicit allow/block) and more powerful (ability to + return explicit error codes). (#12808) + - Bugfixes + - Fix a bug introduced in Synapse 1.60.0rc1 that would break + some imports from synapse.module_api. (#12918) + - Explicitly close ijson coroutines once we are done with them, + instead of leaving the garbage collector to close them. + (#12875) + - Fix a bug introduced in Synapse 1.7.0 that would prevent + events from being sent to clients if there's a retention + policy in the room when the support for retention policies is + disabled. (#12611) + - Fix a bug introduced in Synapse 1.57.0 where /messages would + throw a 500 error when querying for a non-existent room. + (#12683) + - Add a unique index to state_group_edges to prevent duplicates + being accidentally introduced and the consequential impact to + performance. (#12687) + - Fix a long-standing bug where an empty room would be created + when a user with an insufficient power level tried to upgrade + a room. (#12696) + - Fix a bug introduced in Synapse 1.30.0 where empty rooms + could be automatically created if a monthly active users + limit is set. (#12713) + - Fix push to dismiss notifications when read on another + client. Contributed by @SpiritCroc @ Beeper. (#12721) + - Fix poor database performance when reading the cache + invalidation stream for large servers with lots of workers. + (#12747) + - Delete events from the federation_inbound_events_staging + table when a room is purged through the admin API. (#12770) + - Give a meaningful error message when a client tries to create + a room with an invalid alias localpart. (#12779) + - Fix a bug introduced in 1.43.0 where a file (providers.json) + was never closed. Contributed by @arkamar. (#12794) + - Fix a long-standing bug where finished log contexts would be + re-started when failing to contact remote homeservers. + (#12803) + - Fix a bug, introduced in Synapse 1.21.0, that led to media + thumbnails being unusable before the index has been added in + the background. (#12823) + - Updates to the Docker image + - Fix the docker file after a dependency update. (#12853) + - Improved Documentation + - Fix a typo in the Media Admin API documentation. (#12715) + - Update the OpenID Connect example for Keycloak to be + compatible with newer versions of Keycloak. Contributed by + @nhh. (#12727) + - Fix typo in server listener documentation. (#12742) + - Link to the configuration manual from the welcome page of the + documentation. (#12748) + - Fix typo in run_background_tasks_on option name in + configuration manual documentation. (#12749) + - Add information regarding the rc_invites ratelimiting option + to the configuration docs. (#12759) + - Add documentation for cancellation of request processing. + (#12761) + - Recommend using docker to run tests against postgres. + (#12765) + - Add missing user directory endpoint from the generic worker + documentation. Contributed by @olmari. (#12773) + - Add additional info to documentation of config option + cache_autotuning. (#12776) + - Update configuration manual documentation to document + size-related suffixes. (#12777) + - Fix invalid YAML syntax in the example documentation for the + url_preview_accept_language config option. (#12785) + - Deprecations and Removals + - Require a body in POST requests to + /rooms/{roomId}/receipt/{receiptType}/{eventId}, as required + by the Matrix specification. This breaks compatibility with + Element Android 1.2.0 and earlier: users of those clients + will be unable to send read receipts. (#12709) + - Internal Changes + - Improve URL previews by not including the content of media + tags in the generated description. (#12887) + - Improve event caching mechanism to avoid having multiple + copies of an event in memory at a time. (#10533) + - Preparation for faster-room-join work: return subsets of room + state which we already have, immediately. (#12498) + - Add @cancellable decorator, for use on endpoint methods that + can be cancelled when clients disconnect. (#12586, #12588, + #12630, #12694, #12698, #12699, #12700, #12705) + - Enable cancellation of GET /rooms/$room_id/members, GET + /rooms/$room_id/state and GET + /rooms/$room_id/state/$event_type/* requests. (#12708) + - Improve documentation of the synapse.push module. (#12676) + - Refactor functions to on PushRuleEvaluatorForEvent. (#12677) + - Preparation for database schema simplifications: stop writing + to event_reference_hashes. (#12679) + - Remove code which updates unused database column + application_services_state.last_txn. (#12680) + - Refactor EventContext class. (#12689) + - Remove an unneeded class in the push code. (#12691) + - Consolidate parsing of relation information from events. + (#12693) + - Convert namespace class Codes into a string enum. (#12703) + - Optimize private read receipt filtering. (#12711) + - Drop the logging level of status messages for the URL preview + cache expiry job from INFO to DEBUG. (#12720) + - Downgrade some OIDC errors to warnings in the logs, to reduce + the noise of Sentry reports. (#12723) + - Update configs used by Complement to allow more invites/3PID + validations during tests. (#12731) + - Fix a long-standing bug where the user directory background + process would fail to make forward progress if a user + included a null codepoint in their display name or avatar. + (#12762) + - Tweak the mypy plugin so that @cached can accept + on_invalidate=None. (#12769) + - Move methods that call add_push_rule to the PushRuleStore + class. (#12772) + - Make handling of federation Authorization header (more) + compliant with RFC7230. (#12774) + - Refactor resolve_state_groups_for_events to not pull out full + state when no state resolution happens. (#12775) + - Do not keep going if there are 5 back-to-back background + update failures. (#12781) + - Fix federation when using the demo scripts. (#12783) + - The hash_password script now fails when it is called without + specifying a config file. Contributed by @jae1911. (#12789) + - Improve and fix type hints. (#12567, #12477, #12717, #12753, + #12695, #12734, #12716, #12726, #12790, #12833) + - Update EventContext get_current_event_ids and + get_prev_event_ids to accept state filters and update calls + where possible. (#12791) + - Remove Caddy from the Synapse workers image used in + Complement. (#12818) + - Add Complement's shared registration secret to the Complement + worker image. This fixes tests that depend on it. (#12819) + - Support registering Application Services when running with + workers under Complement. (#12826) + - Disable 'faster room join' Complement tests when testing + against Synapse with workers. (#12842) + ------------------------------------------------------------------- Wed May 18 12:10:11 UTC 2022 - Marcus Rueckert diff --git a/matrix-synapse.obsinfo b/matrix-synapse.obsinfo index 35a44aa..97f1d34 100644 --- a/matrix-synapse.obsinfo +++ b/matrix-synapse.obsinfo @@ -1,4 +1,4 @@ name: matrix-synapse -version: 1.59.1 -mtime: 1652870765 -commit: d24a1486e5c5d69a8798a9d159fd9e06dfc8c3e3 +version: 1.60.0 +mtime: 1654000909 +commit: 5984ada6bb340c736376ba94d766bf76ceeaf514 diff --git a/matrix-synapse.spec b/matrix-synapse.spec index 7eac270..e3729bd 100644 --- a/matrix-synapse.spec +++ b/matrix-synapse.spec @@ -51,7 +51,7 @@ %define pkgname matrix-synapse %define eggname matrix_synapse Name: %{pkgname} -Version: 1.59.1 +Version: 1.60.0 Release: 0 Summary: Matrix protocol reference homeserver License: Apache-2.0 From 86cb2098e5d5150a978439368808e55764112ccfbf5e3cf5c72866ce7f005082 Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Tue, 31 May 2022 16:57:25 +0000 Subject: [PATCH 2/2] fix date OBS-URL: https://build.opensuse.org/package/show/network:messaging:matrix/matrix-synapse?expand=0&rev=224 --- matrix-synapse.changes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix-synapse.changes b/matrix-synapse.changes index 013ddda..09d823a 100644 --- a/matrix-synapse.changes +++ b/matrix-synapse.changes @@ -1,5 +1,5 @@ ------------------------------------------------------------------- -Fri May 27 12:23:18 UTC 2022 - Marcus Rueckert +Tue May 31 16:57:15 UTC 2022 - Marcus Rueckert - Update to 1.60.0 This release of Synapse adds a unique index to the