Skip to content

Commit 0582f7e

Browse files
committed
Update chat/matrix-synapse to 1.21.2
Synapse 1.21.2 (2020-10-15) =========================== Debian packages and Docker images have been rebuilt using the latest versions of dependency libraries, including authlib 0.15.1. Please see bugfixes below. Security advisory ----------------- * HTML pages served via Synapse were vulnerable to cross-site scripting (XSS) attacks. All server administrators are encouraged to upgrade. ([\#8444](matrix-org/synapse#8444)) ([CVE-2020-26891](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-26891)) This fix was originally included in v1.21.0 but was missing a security advisory. This was reported by [Denis Kasak](https://github.com/dkasak). Bugfixes -------- - Fix rare bug where sending an event would fail due to a racey assertion. ([\#8530](matrix-org/synapse#8530)) - An updated version of the authlib dependency is included in the Docker and Debian images to fix an issue using OpenID Connect. See [\#8534](matrix-org/synapse#8534) for details. Synapse 1.21.1 (2020-10-13) =========================== This release fixes a regression in v1.21.0 that prevented debian packages from being built. It is otherwise identical to v1.21.0. Synapse 1.21.0 (2020-10-12) =========================== No significant changes since v1.21.0rc3. As [noted in v1.20.0](https://github.com/matrix-org/synapse/blob/release-v1.21.0/CHANGES.md#synapse-1200-2020-09-22), a future release will drop support for accessing Synapse's [Admin API](https://github.com/matrix-org/synapse/tree/master/docs/admin_api) under the `/_matrix/client/*` endpoint prefixes. At that point, the Admin API will only be accessible under `/_synapse/admin`. Synapse 1.21.0rc3 (2020-10-08) ============================== Bugfixes -------- - Fix duplication of events on high traffic servers, caused by PostgreSQL `could not serialize access due to concurrent update` errors. ([\#8456](matrix-org/synapse#8456)) Internal Changes ---------------- - Add Groovy Gorilla to the list of distributions we build `.deb`s for. ([\#8475](matrix-org/synapse#8475)) Synapse 1.21.0rc2 (2020-10-02) ============================== Features -------- - Convert additional templates from inline HTML to Jinja2 templates. ([\#8444](matrix-org/synapse#8444)) Bugfixes -------- - Fix a regression in v1.21.0rc1 which broke thumbnails of remote media. ([\#8438](matrix-org/synapse#8438)) - Do not expose the experimental `uk.half-shot.msc2778.login.application_service` flow in the login API, which caused a compatibility problem with Element iOS. ([\#8440](matrix-org/synapse#8440)) - Fix malformed log line in new federation "catch up" logic. ([\#8442](matrix-org/synapse#8442)) - Fix DB query on startup for negative streams which caused long start up times. Introduced in [\#8374](matrix-org/synapse#8374). ([\#8447](matrix-org/synapse#8447)) Synapse 1.21.0rc1 (2020-10-01) ============================== Features -------- - Require the user to confirm that their password should be reset after clicking the email confirmation link. ([\#8004](matrix-org/synapse#8004)) - Add an admin API `GET /_synapse/admin/v1/event_reports` to read entries of table `event_reports`. Contributed by @dklimpel. ([\#8217](matrix-org/synapse#8217)) - Consolidate the SSO error template across all configuration. ([\#8248](matrix-org/synapse#8248), [\#8405](matrix-org/synapse#8405)) - Add a configuration option to specify a whitelist of domains that a user can be redirected to after validating their email or phone number. ([\#8275](matrix-org/synapse#8275), [\#8417](matrix-org/synapse#8417)) - Add experimental support for sharding event persister. ([\#8294](matrix-org/synapse#8294), [\#8387](matrix-org/synapse#8387), [\#8396](matrix-org/synapse#8396), [\#8419](matrix-org/synapse#8419)) - Add the room topic and avatar to the room details admin API. ([\#8305](matrix-org/synapse#8305)) - Add an admin API for querying rooms where a user is a member. Contributed by @dklimpel. ([\#8306](matrix-org/synapse#8306)) - Add `uk.half-shot.msc2778.login.application_service` login type to allow appservices to login. ([\#8320](matrix-org/synapse#8320)) - Add a configuration option that allows existing users to log in with OpenID Connect. Contributed by @BBBSnowball and @OmmyZhang. ([\#8345](matrix-org/synapse#8345)) - Add prometheus metrics for replication requests. ([\#8406](matrix-org/synapse#8406)) - Support passing additional single sign-on parameters to the client. ([\#8413](matrix-org/synapse#8413)) - Add experimental reporting of metrics on expensive rooms for state-resolution. ([\#8420](matrix-org/synapse#8420)) - Add experimental prometheus metric to track numbers of "large" rooms for state resolutiom. ([\#8425](matrix-org/synapse#8425)) - Add prometheus metrics to track federation delays. ([\#8430](matrix-org/synapse#8430)) Bugfixes -------- - Fix a bug in the media repository where remote thumbnails with the same size but different crop methods would overwrite each other. Contributed by @deepbluev7. ([\#7124](matrix-org/synapse#7124)) - Fix inconsistent handling of non-existent push rules, and stop tracking the `enabled` state of removed push rules. ([\#7796](matrix-org/synapse#7796)) - Fix a longstanding bug when storing a media file with an empty `upload_name`. ([\#7905](matrix-org/synapse#7905)) - Fix messages not being sent over federation until an event is sent into the same room. ([\#8230](matrix-org/synapse#8230), [\#8247](matrix-org/synapse#8247), [\#8258](matrix-org/synapse#8258), [\#8272](matrix-org/synapse#8272), [\#8322](matrix-org/synapse#8322)) - Fix a longstanding bug where files that could not be thumbnailed would result in an Internal Server Error. ([\#8236](matrix-org/synapse#8236), [\#8435](matrix-org/synapse#8435)) - Upgrade minimum version of `canonicaljson` to version 1.4.0, to fix an unicode encoding issue. ([\#8262](matrix-org/synapse#8262)) - Fix longstanding bug which could lead to incomplete database upgrades on SQLite. ([\#8265](matrix-org/synapse#8265)) - Fix stack overflow when stderr is redirected to the logging system, and the logging system encounters an error. ([\#8268](matrix-org/synapse#8268)) - Fix a bug which cause the logging system to report errors, if `DEBUG` was enabled and no `context` filter was applied. ([\#8278](matrix-org/synapse#8278)) - Fix edge case where push could get delayed for a user until a later event was pushed. ([\#8287](matrix-org/synapse#8287)) - Fix fetching malformed events from remote servers. ([\#8324](matrix-org/synapse#8324)) - Fix `UnboundLocalError` from occuring when appservices send a malformed register request. ([\#8329](matrix-org/synapse#8329)) - Don't send push notifications to expired user accounts. ([\#8353](matrix-org/synapse#8353)) - Fix a regression in v1.19.0 with reactivating users through the admin API. ([\#8362](matrix-org/synapse#8362)) - Fix a bug where during device registration the length of the device name wasn't limited. ([\#8364](matrix-org/synapse#8364)) - Include `guest_access` in the fields that are checked for null bytes when updating `room_stats_state`. Broke in v1.7.2. ([\#8373](matrix-org/synapse#8373)) - Fix theoretical race condition where events are not sent down `/sync` if the synchrotron worker is restarted without restarting other workers. ([\#8374](matrix-org/synapse#8374)) - Fix a bug which could cause errors in rooms with malformed membership events, on servers using sqlite. ([\#8385](matrix-org/synapse#8385)) - Fix "Re-starting finished log context" warning when receiving an event we already had over federation. ([\#8398](matrix-org/synapse#8398)) - Fix incorrect handling of timeouts on outgoing HTTP requests. ([\#8400](matrix-org/synapse#8400)) - Fix a regression in v1.20.0 in the `synapse_port_db` script regarding the `ui_auth_sessions_ips` table. ([\#8410](matrix-org/synapse#8410)) - Remove unnecessary 3PID registration check when resetting password via an email address. Bug introduced in v0.34.0rc2. ([\#8414](matrix-org/synapse#8414)) Improved Documentation ---------------------- - Add `/_synapse/client` to the reverse proxy documentation. ([\#8227](matrix-org/synapse#8227)) - Add note to the reverse proxy settings documentation about disabling Apache's mod_security2. Contributed by Julian Fietkau (@jfietkau). ([\#8375](matrix-org/synapse#8375)) - Improve description of `server_name` config option in `homserver.yaml`. ([\#8415](matrix-org/synapse#8415)) Deprecations and Removals ------------------------- - Drop support for `prometheus_client` older than 0.4.0. ([\#8426](matrix-org/synapse#8426)) Internal Changes ---------------- - Fix tests on distros which disable TLSv1.0. Contributed by @danc86. ([\#8208](matrix-org/synapse#8208)) - Simplify the distributor code to avoid unnecessary work. ([\#8216](matrix-org/synapse#8216)) - Remove the `populate_stats_process_rooms_2` background job and restore functionality to `populate_stats_process_rooms`. ([\#8243](matrix-org/synapse#8243)) - Clean up type hints for `PaginationConfig`. ([\#8250](matrix-org/synapse#8250), [\#8282](matrix-org/synapse#8282)) - Track the latest event for every destination and room for catch-up after federation outage. ([\#8256](matrix-org/synapse#8256)) - Fix non-user visible bug in implementation of `MultiWriterIdGenerator.get_current_token_for_writer`. ([\#8257](matrix-org/synapse#8257)) - Switch to the JSON implementation from the standard library. ([\#8259](matrix-org/synapse#8259)) - Add type hints to `synapse.util.async_helpers`. ([\#8260](matrix-org/synapse#8260)) - Simplify tests that mock asynchronous functions. ([\#8261](matrix-org/synapse#8261)) - Add type hints to `StreamToken` and `RoomStreamToken` classes. ([\#8279](matrix-org/synapse#8279)) - Change `StreamToken.room_key` to be a `RoomStreamToken` instance. ([\#8281](matrix-org/synapse#8281)) - Refactor notifier code to correctly use the max event stream position. ([\#8288](matrix-org/synapse#8288)) - Use slotted classes where possible. ([\#8296](matrix-org/synapse#8296)) - Support testing the local Synapse checkout against the [Complement homeserver test suite](https://github.com/matrix-org/complement/). ([\#8317](matrix-org/synapse#8317)) - Update outdated usages of `metaclass` to python 3 syntax. ([\#8326](matrix-org/synapse#8326)) - Move lint-related dependencies to package-extra field, update CONTRIBUTING.md to utilise this. ([\#8330](matrix-org/synapse#8330), [\#8377](matrix-org/synapse#8377)) - Use the `admin_patterns` helper in additional locations. ([\#8331](matrix-org/synapse#8331)) - Fix test logging to allow braces in log output. ([\#8335](matrix-org/synapse#8335)) - Remove `__future__` imports related to Python 2 compatibility. ([\#8337](matrix-org/synapse#8337)) - Simplify `super()` calls to Python 3 syntax. ([\#8344](matrix-org/synapse#8344)) - Fix bad merge from `release-v1.20.0` branch to `develop`. ([\#8354](matrix-org/synapse#8354)) - Factor out a `_send_dummy_event_for_room` method. ([\#8370](matrix-org/synapse#8370)) - Improve logging of state resolution. ([\#8371](matrix-org/synapse#8371)) - Add type annotations to `SimpleHttpClient`. ([\#8372](matrix-org/synapse#8372)) - Refactor ID generators to use `async with` syntax. ([\#8383](matrix-org/synapse#8383)) - Add `EventStreamPosition` type. ([\#8388](matrix-org/synapse#8388)) - Create a mechanism for marking tests "logcontext clean". ([\#8399](matrix-org/synapse#8399)) - A pair of tiny cleanups in the federation request code. ([\#8401](matrix-org/synapse#8401)) - Add checks on startup that PostgreSQL sequences are consistent with their associated tables. ([\#8402](matrix-org/synapse#8402)) - Do not include appservice users when calculating the total MAU for a server. ([\#8404](matrix-org/synapse#8404)) - Typing fixes for `synapse.handlers.federation`. ([\#8422](matrix-org/synapse#8422)) - Various refactors to simplify stream token handling. ([\#8423](matrix-org/synapse#8423)) - Make stream token serializing/deserializing async. ([\#8427](matrix-org/synapse#8427))
1 parent fc9c13b commit 0582f7e

File tree

3 files changed

+33
-9
lines changed

3 files changed

+33
-9
lines changed

chat/matrix-synapse/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# $NetBSD: Makefile,v 1.8 2020/09/26 00:23:29 js Exp $
1+
# $NetBSD: Makefile,v 1.9 2020/10/17 11:42:35 js Exp $
22

3-
DISTNAME= matrix-synapse-1.20.1
3+
DISTNAME= matrix-synapse-1.21.2
44
CATEGORIES= chat
55
MASTER_SITES= ${MASTER_SITE_GITHUB:=matrix-org/}
66
EGG_NAME= matrix_synapse-${PKGVERSION_NOREV}

chat/matrix-synapse/PLIST

+26-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@comment $NetBSD: PLIST,v 1.2 2020/09/22 21:21:51 js Exp $
1+
@comment $NetBSD: PLIST,v 1.3 2020/10/17 11:42:35 js Exp $
22
bin/export_signing_key
33
bin/generate_config
44
bin/generate_log_config
@@ -717,6 +717,7 @@ ${PYSITELIB}/synapse/res/templates/add_threepid.html
717717
${PYSITELIB}/synapse/res/templates/add_threepid.txt
718718
${PYSITELIB}/synapse/res/templates/add_threepid_failure.html
719719
${PYSITELIB}/synapse/res/templates/add_threepid_success.html
720+
${PYSITELIB}/synapse/res/templates/auth_success.html
720721
${PYSITELIB}/synapse/res/templates/invalid_token.html
721722
${PYSITELIB}/synapse/res/templates/mail-Element.css
722723
${PYSITELIB}/synapse/res/templates/mail-Vector.css
@@ -730,20 +731,22 @@ ${PYSITELIB}/synapse/res/templates/notif_mail.html
730731
${PYSITELIB}/synapse/res/templates/notif_mail.txt
731732
${PYSITELIB}/synapse/res/templates/password_reset.html
732733
${PYSITELIB}/synapse/res/templates/password_reset.txt
734+
${PYSITELIB}/synapse/res/templates/password_reset_confirmation.html
733735
${PYSITELIB}/synapse/res/templates/password_reset_failure.html
734736
${PYSITELIB}/synapse/res/templates/password_reset_success.html
737+
${PYSITELIB}/synapse/res/templates/recaptcha.html
735738
${PYSITELIB}/synapse/res/templates/registration.html
736739
${PYSITELIB}/synapse/res/templates/registration.txt
737740
${PYSITELIB}/synapse/res/templates/registration_failure.html
738741
${PYSITELIB}/synapse/res/templates/registration_success.html
739742
${PYSITELIB}/synapse/res/templates/room.html
740743
${PYSITELIB}/synapse/res/templates/room.txt
741-
${PYSITELIB}/synapse/res/templates/saml_error.html
742744
${PYSITELIB}/synapse/res/templates/sso_account_deactivated.html
743745
${PYSITELIB}/synapse/res/templates/sso_auth_confirm.html
744746
${PYSITELIB}/synapse/res/templates/sso_auth_success.html
745747
${PYSITELIB}/synapse/res/templates/sso_error.html
746748
${PYSITELIB}/synapse/res/templates/sso_redirect_confirm.html
749+
${PYSITELIB}/synapse/res/templates/terms.html
747750
${PYSITELIB}/synapse/rest/__init__.py
748751
${PYSITELIB}/synapse/rest/__init__.pyc
749752
${PYSITELIB}/synapse/rest/__init__.pyo
@@ -756,6 +759,9 @@ ${PYSITELIB}/synapse/rest/admin/_base.pyo
756759
${PYSITELIB}/synapse/rest/admin/devices.py
757760
${PYSITELIB}/synapse/rest/admin/devices.pyc
758761
${PYSITELIB}/synapse/rest/admin/devices.pyo
762+
${PYSITELIB}/synapse/rest/admin/event_reports.py
763+
${PYSITELIB}/synapse/rest/admin/event_reports.pyc
764+
${PYSITELIB}/synapse/rest/admin/event_reports.pyo
759765
${PYSITELIB}/synapse/rest/admin/groups.py
760766
${PYSITELIB}/synapse/rest/admin/groups.pyc
761767
${PYSITELIB}/synapse/rest/admin/groups.pyo
@@ -978,6 +984,15 @@ ${PYSITELIB}/synapse/rest/saml2/metadata_resource.pyo
978984
${PYSITELIB}/synapse/rest/saml2/response_resource.py
979985
${PYSITELIB}/synapse/rest/saml2/response_resource.pyc
980986
${PYSITELIB}/synapse/rest/saml2/response_resource.pyo
987+
${PYSITELIB}/synapse/rest/synapse/__init__.py
988+
${PYSITELIB}/synapse/rest/synapse/__init__.pyc
989+
${PYSITELIB}/synapse/rest/synapse/__init__.pyo
990+
${PYSITELIB}/synapse/rest/synapse/client/__init__.py
991+
${PYSITELIB}/synapse/rest/synapse/client/__init__.pyc
992+
${PYSITELIB}/synapse/rest/synapse/client/__init__.pyo
993+
${PYSITELIB}/synapse/rest/synapse/client/password_reset.py
994+
${PYSITELIB}/synapse/rest/synapse/client/password_reset.pyc
995+
${PYSITELIB}/synapse/rest/synapse/client/password_reset.pyo
981996
${PYSITELIB}/synapse/rest/well_known.py
982997
${PYSITELIB}/synapse/rest/well_known.pyc
983998
${PYSITELIB}/synapse/rest/well_known.pyo
@@ -1370,18 +1385,27 @@ ${PYSITELIB}/synapse/storage/databases/main/schema/delta/58/05cache_instance.sql
13701385
${PYSITELIB}/synapse/storage/databases/main/schema/delta/58/06dlols_unique_idx.py
13711386
${PYSITELIB}/synapse/storage/databases/main/schema/delta/58/06dlols_unique_idx.pyc
13721387
${PYSITELIB}/synapse/storage/databases/main/schema/delta/58/06dlols_unique_idx.pyo
1388+
${PYSITELIB}/synapse/storage/databases/main/schema/delta/58/07add_method_to_thumbnail_constraint.sql.postgres
1389+
${PYSITELIB}/synapse/storage/databases/main/schema/delta/58/07add_method_to_thumbnail_constraint.sql.sqlite
13731390
${PYSITELIB}/synapse/storage/databases/main/schema/delta/58/07persist_ui_auth_ips.sql
13741391
${PYSITELIB}/synapse/storage/databases/main/schema/delta/58/08_media_safe_from_quarantine.sql.postgres
13751392
${PYSITELIB}/synapse/storage/databases/main/schema/delta/58/08_media_safe_from_quarantine.sql.sqlite
13761393
${PYSITELIB}/synapse/storage/databases/main/schema/delta/58/09shadow_ban.sql
1394+
${PYSITELIB}/synapse/storage/databases/main/schema/delta/58/10_pushrules_enabled_delete_obsolete.sql
13771395
${PYSITELIB}/synapse/storage/databases/main/schema/delta/58/10drop_local_rejections_stream.sql
13781396
${PYSITELIB}/synapse/storage/databases/main/schema/delta/58/10federation_pos_instance_name.sql
13791397
${PYSITELIB}/synapse/storage/databases/main/schema/delta/58/11user_id_seq.py
13801398
${PYSITELIB}/synapse/storage/databases/main/schema/delta/58/11user_id_seq.pyc
13811399
${PYSITELIB}/synapse/storage/databases/main/schema/delta/58/11user_id_seq.pyo
13821400
${PYSITELIB}/synapse/storage/databases/main/schema/delta/58/12room_stats.sql
13831401
${PYSITELIB}/synapse/storage/databases/main/schema/delta/58/13remove_presence_allow_inbound.sql
1402+
${PYSITELIB}/synapse/storage/databases/main/schema/delta/58/14events_instance_name.sql
1403+
${PYSITELIB}/synapse/storage/databases/main/schema/delta/58/14events_instance_name.sql.postgres
1404+
${PYSITELIB}/synapse/storage/databases/main/schema/delta/58/15_catchup_destination_rooms.sql
13841405
${PYSITELIB}/synapse/storage/databases/main/schema/delta/58/15unread_count.sql
1406+
${PYSITELIB}/synapse/storage/databases/main/schema/delta/58/16populate_stats_process_rooms_fix.sql
1407+
${PYSITELIB}/synapse/storage/databases/main/schema/delta/58/17_catchup_last_successful.sql
1408+
${PYSITELIB}/synapse/storage/databases/main/schema/delta/58/18stream_positions.sql
13851409
${PYSITELIB}/synapse/storage/databases/main/schema/full_schemas/16/application_services.sql
13861410
${PYSITELIB}/synapse/storage/databases/main/schema/full_schemas/16/event_edges.sql
13871411
${PYSITELIB}/synapse/storage/databases/main/schema/full_schemas/16/event_signatures.sql

chat/matrix-synapse/distinfo

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
$NetBSD: distinfo,v 1.5 2020/09/26 00:23:29 js Exp $
1+
$NetBSD: distinfo,v 1.6 2020/10/17 11:42:35 js Exp $
22

3-
SHA1 (matrix-synapse-1.20.1.tar.gz) = f3a7447a570fe7c5566a1f17de4d4e513a252dfc
4-
RMD160 (matrix-synapse-1.20.1.tar.gz) = e7c197edbd15a2440aac22eebca4de38a10c2cf1
5-
SHA512 (matrix-synapse-1.20.1.tar.gz) = 44ebad9c2f8f6bf90f15a0377552c233b4201a47106fb9d2fd3f6deab89ed7a638ee47a805a788a7cf20a400533a27bee24e84e4bef158c14f234023c1897681
6-
Size (matrix-synapse-1.20.1.tar.gz) = 6891101 bytes
3+
SHA1 (matrix-synapse-1.21.2.tar.gz) = ff7321bec10acf5f59534535f077fdc88601e3f7
4+
RMD160 (matrix-synapse-1.21.2.tar.gz) = d1a479ab67c748e14f04f3834db2ff27b88ef5fb
5+
SHA512 (matrix-synapse-1.21.2.tar.gz) = 745ea382e38fa427e062fdab595c45b350bdd8002af252f38dff3e5b0bbee50230ff10bdf9e39fc97071c96340f89a7a994ab2238aaa16da65b145c1e144edaa
6+
Size (matrix-synapse-1.21.2.tar.gz) = 6930190 bytes

0 commit comments

Comments
 (0)