Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge branch 'develop' into rav/pass_site_to_make_request
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh authored Nov 16, 2020
2 parents 0d33c53 + 791d7cd commit bebfb9a
Show file tree
Hide file tree
Showing 89 changed files with 147 additions and 120 deletions.
86 changes: 86 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,89 @@
Synapse 1.23.0rc1 (2020-11-13)
==============================

Features
--------

- Add a push rule that highlights when a jitsi conference is created in a room. ([\#8286](https://github.com/matrix-org/synapse/issues/8286))
- Add an admin api to delete a single file or files that were not used for a defined time from server. Contributed by @dklimpel. ([\#8519](https://github.com/matrix-org/synapse/issues/8519))
- Split admin API for reported events (`GET /_synapse/admin/v1/event_reports`) into detail and list endpoints. This is a breaking change to #8217 which was introduced in Synapse v1.21.0. Those who already use this API should check their scripts. Contributed by @dklimpel. ([\#8539](https://github.com/matrix-org/synapse/issues/8539))
- Support generating structured logs via the standard logging configuration. ([\#8607](https://github.com/matrix-org/synapse/issues/8607), [\#8685](https://github.com/matrix-org/synapse/issues/8685))
- Add an admin API to allow server admins to list users' pushers. Contributed by @dklimpel. ([\#8610](https://github.com/matrix-org/synapse/issues/8610), [\#8689](https://github.com/matrix-org/synapse/issues/8689))
- Add an admin API `GET /_synapse/admin/v1/users/<user_id>/media` to get information about uploaded media. Contributed by @dklimpel. ([\#8647](https://github.com/matrix-org/synapse/issues/8647))
- Add an admin API for local user media statistics. Contributed by @dklimpel. ([\#8700](https://github.com/matrix-org/synapse/issues/8700))
- Add `displayname` to Shared-Secret Registration for admins. ([\#8722](https://github.com/matrix-org/synapse/issues/8722))


Bugfixes
--------

- Fix fetching of E2E cross signing keys over federation when only one of the master key and device signing key is cached already. ([\#8455](https://github.com/matrix-org/synapse/issues/8455))
- Fix a bug where Synapse would blindly forward bad responses from federation to clients when retrieving profile information. ([\#8580](https://github.com/matrix-org/synapse/issues/8580))
- Fix a bug where the account validity endpoint would silently fail if the user ID did not have an expiration time. It now returns a 400 error. ([\#8620](https://github.com/matrix-org/synapse/issues/8620))
- Fix email notifications for invites without local state. ([\#8627](https://github.com/matrix-org/synapse/issues/8627))
- Fix handling of invalid group IDs to return a 400 rather than log an exception and return a 500. ([\#8628](https://github.com/matrix-org/synapse/issues/8628))
- Fix handling of User-Agent headers that are invalid UTF-8, which caused user agents of users to not get correctly recorded. ([\#8632](https://github.com/matrix-org/synapse/issues/8632))
- Fix a bug in the `joined_rooms` admin API if the user has never joined any rooms. The bug was introduced, along with the API, in v1.21.0. ([\#8643](https://github.com/matrix-org/synapse/issues/8643))
- Fix exception during handling multiple concurrent requests for remote media when using multiple media repositories. ([\#8682](https://github.com/matrix-org/synapse/issues/8682))
- Fix bug that prevented Synapse from recovering after losing connection to the database. ([\#8726](https://github.com/matrix-org/synapse/issues/8726))
- Fix bug where the `/_synapse/admin/v1/send_server_notice` API could send notices to non-notice rooms. ([\#8728](https://github.com/matrix-org/synapse/issues/8728))
- Fix PostgreSQL port script fails when DB has no backfilled events. Broke in v1.21.0. ([\#8729](https://github.com/matrix-org/synapse/issues/8729))
- Fix PostgreSQL port script to correctly handle foreign key constraints. Broke in v1.21.0. ([\#8730](https://github.com/matrix-org/synapse/issues/8730))
- Fix PostgreSQL port script so that it can be run again after a failure. Broke in v1.21.0. ([\#8755](https://github.com/matrix-org/synapse/issues/8755))


Improved Documentation
----------------------

- Instructions for Azure AD in the OpenID Connect documentation. Contributed by peterk. ([\#8582](https://github.com/matrix-org/synapse/issues/8582))
- Improve the sample configuration for single sign-on providers. ([\#8635](https://github.com/matrix-org/synapse/issues/8635))
- Fix the filepath of Dex's example config and the link to Dex's Getting Started guide in the OpenID Connect docs. ([\#8657](https://github.com/matrix-org/synapse/issues/8657))
- Note support for Python 3.9. ([\#8665](https://github.com/matrix-org/synapse/issues/8665))
- Minor updates to docs on running tests. ([\#8666](https://github.com/matrix-org/synapse/issues/8666))
- Interlink prometheus/grafana documentation. ([\#8667](https://github.com/matrix-org/synapse/issues/8667))
- Notes on SSO logins and media_repository worker. ([\#8701](https://github.com/matrix-org/synapse/issues/8701))
- Document experimental support for running multiple event persisters. ([\#8706](https://github.com/matrix-org/synapse/issues/8706))
- Add information regarding the various sources of, and expected contributions to, Synapse's documentation to `CONTRIBUTING.md`. ([\#8714](https://github.com/matrix-org/synapse/issues/8714))
- Migrate documentation `docs/admin_api/event_reports` to markdown. ([\#8742](https://github.com/matrix-org/synapse/issues/8742))
- Add some helpful hints to the README for new Synapse developers. Contributed by @chagai95. ([\#8746](https://github.com/matrix-org/synapse/issues/8746))


Internal Changes
----------------

- Optimise `/createRoom` with multiple invited users. ([\#8559](https://github.com/matrix-org/synapse/issues/8559))
- Implement and use an @lru_cache decorator. ([\#8595](https://github.com/matrix-org/synapse/issues/8595))
- Don't instansiate Requester directly. ([\#8614](https://github.com/matrix-org/synapse/issues/8614))
- Type hints for `RegistrationStore`. ([\#8615](https://github.com/matrix-org/synapse/issues/8615))
- Change schema to support access tokens belonging to one user but granting access to another. ([\#8616](https://github.com/matrix-org/synapse/issues/8616))
- Remove unused OPTIONS handlers. ([\#8621](https://github.com/matrix-org/synapse/issues/8621))
- Run `mypy` as part of the lint.sh script. ([\#8633](https://github.com/matrix-org/synapse/issues/8633))
- Correct Synapse's PyPI package name in the OpenID Connect installation instructions. ([\#8634](https://github.com/matrix-org/synapse/issues/8634))
- Catch exceptions during initialization of `password_providers`. Contributed by Nicolai Søborg. ([\#8636](https://github.com/matrix-org/synapse/issues/8636))
- Fix typos and spelling errors in the code. ([\#8639](https://github.com/matrix-org/synapse/issues/8639))
- Reduce number of OpenTracing spans started. ([\#8640](https://github.com/matrix-org/synapse/issues/8640), [\#8668](https://github.com/matrix-org/synapse/issues/8668), [\#8670](https://github.com/matrix-org/synapse/issues/8670))
- Add field `total` to device list in admin API. ([\#8644](https://github.com/matrix-org/synapse/issues/8644))
- Add more type hints to the application services code. ([\#8655](https://github.com/matrix-org/synapse/issues/8655), [\#8693](https://github.com/matrix-org/synapse/issues/8693))
- Tell Black to format code for Python 3.5. ([\#8664](https://github.com/matrix-org/synapse/issues/8664))
- Don't pull event from DB when handling replication traffic. ([\#8669](https://github.com/matrix-org/synapse/issues/8669))
- Abstract some invite-related code in preparation for landing knocking. ([\#8671](https://github.com/matrix-org/synapse/issues/8671), [\#8688](https://github.com/matrix-org/synapse/issues/8688))
- Clarify representation of events in logfiles. ([\#8679](https://github.com/matrix-org/synapse/issues/8679))
- Don't require `hiredis` package to be installed to run unit tests. ([\#8680](https://github.com/matrix-org/synapse/issues/8680))
- Fix typing info on cache call signature to accept `on_invalidate`. ([\#8684](https://github.com/matrix-org/synapse/issues/8684))
- Fail tests if they do not await coroutines. ([\#8690](https://github.com/matrix-org/synapse/issues/8690))
- Improve start time by adding an index to `e2e_cross_signing_keys.stream_id`. ([\#8694](https://github.com/matrix-org/synapse/issues/8694))
- Re-organize the structured logging code to separate the TCP transport handling from the JSON formatting. ([\#8697](https://github.com/matrix-org/synapse/issues/8697))
- Use Python 3.8 in Docker images by default. ([\#8698](https://github.com/matrix-org/synapse/issues/8698))
- Remove the "draft" status of the Room Details Admin API. ([\#8702](https://github.com/matrix-org/synapse/issues/8702))
- Improve the error returned when a non-string displayname or avatar_url is used when updating a user's profile. ([\#8705](https://github.com/matrix-org/synapse/issues/8705))
- Block attempts by clients to send server ACLs, or redactions of server ACLs, that would result in the local server being blocked from the room. ([\#8708](https://github.com/matrix-org/synapse/issues/8708))
- Add metrics the allow the local sysadmin to track 3PID `/requestToken` requests. ([\#8712](https://github.com/matrix-org/synapse/issues/8712))
- Consolidate duplicated lists of purged tables that are checked in tests. ([\#8713](https://github.com/matrix-org/synapse/issues/8713))
- Add some `mdui:UIInfo` element examples for `saml2_config` in the homeserver config. ([\#8718](https://github.com/matrix-org/synapse/issues/8718))
- Improve the error message returned when a remote server incorrectly sets the `Content-Type` header in response to a JSON request. ([\#8719](https://github.com/matrix-org/synapse/issues/8719))
- Speed up repeated state resolutions on the same room by caching event ID to auth event ID lookups. ([\#8752](https://github.com/matrix-org/synapse/issues/8752))


Synapse 1.22.1 (2020-10-30)
===========================

Expand Down
1 change: 0 additions & 1 deletion changelog.d/8286.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8455.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8519.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8539.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8559.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8580.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8582.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8595.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8607.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8610.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8614.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8615.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8616.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8620.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8621.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8627.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8628.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8632.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8633.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8634.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8635.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8636.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8639.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8640.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8643.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8644.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8647.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8655.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8657.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8664.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8665.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8666.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8667.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8668.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8669.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8670.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8671.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8679.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8680.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8682.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8684.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8685.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8688.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8689.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8690.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8693.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8694.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8697.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8698.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8700.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8701.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8702.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8705.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8706.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8708.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8712.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8713.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8714.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8718.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8719.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8722.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8726.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8728.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8729.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8730.bugfix

This file was deleted.

1 change: 1 addition & 0 deletions changelog.d/8734.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify the usecase for an msisdn delegate. Contributed by Adrian Wannenmacher.
1 change: 0 additions & 1 deletion changelog.d/8742.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8746.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/8752.misc

This file was deleted.

1 change: 1 addition & 0 deletions changelog.d/8754.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Generalise `RoomStore.maybe_store_room_on_invite` to handle other, non-invite membership events.
1 change: 0 additions & 1 deletion changelog.d/8755.bugfix

This file was deleted.

1 change: 1 addition & 0 deletions changelog.d/8759.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Refactor test utilities for injecting HTTP requests.
1 change: 1 addition & 0 deletions changelog.d/8760.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Refactor test utilities for injecting HTTP requests.
5 changes: 3 additions & 2 deletions docs/sample_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1230,8 +1230,9 @@ account_validity:
# email will be globally disabled.
#
# Additionally, if `msisdn` is not set, registration and password resets via msisdn
# will be disabled regardless. This is due to Synapse currently not supporting any
# method of sending SMS messages on its own.
# will be disabled regardless, and users will not be able to associate an msisdn
# identifier to their account. This is due to Synapse currently not supporting
# any method of sending SMS messages on its own.
#
# To enable using an identity server for operations regarding a particular third-party
# identifier type, set the value to the URL of that identity server as shown in the
Expand Down
2 changes: 1 addition & 1 deletion synapse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
except ImportError:
pass

__version__ = "1.22.1"
__version__ = "1.23.0rc1"

if bool(os.environ.get("SYNAPSE_TEST_PATCH_LOG_CONTEXTS", False)):
# We import here so that we don't have to install a bunch of deps when
Expand Down
5 changes: 3 additions & 2 deletions synapse/config/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,9 @@ def generate_config_section(self, generate_secrets=False, **kwargs):
# email will be globally disabled.
#
# Additionally, if `msisdn` is not set, registration and password resets via msisdn
# will be disabled regardless. This is due to Synapse currently not supporting any
# method of sending SMS messages on its own.
# will be disabled regardless, and users will not be able to associate an msisdn
# identifier to their account. This is due to Synapse currently not supporting
# any method of sending SMS messages on its own.
#
# To enable using an identity server for operations regarding a particular third-party
# identifier type, set the value to the URL of that identity server as shown in the
Expand Down
Loading

0 comments on commit bebfb9a

Please sign in to comment.