Browse Source

1.45.0rc1

Brendan Abolivier 2 years ago
parent
commit
8c5255b664
66 changed files with 84 additions and 66 deletions
  1. 78 0
      CHANGES.md
  2. 0 1
      changelog.d/10822.feature
  3. 0 1
      changelog.d/10877.feature
  4. 0 1
      changelog.d/10888.misc
  5. 0 1
      changelog.d/10892.misc
  6. 0 1
      changelog.d/10894.feature
  7. 0 1
      changelog.d/10895.misc
  8. 0 1
      changelog.d/10902.misc
  9. 0 1
      changelog.d/10903.misc
  10. 0 1
      changelog.d/10910.feature
  11. 0 1
      changelog.d/10915.misc
  12. 0 1
      changelog.d/10916.misc
  13. 0 1
      changelog.d/10922.bugfix
  14. 0 1
      changelog.d/10924.bugfix
  15. 0 1
      changelog.d/10926.misc
  16. 0 1
      changelog.d/10927.bugfix
  17. 0 1
      changelog.d/10934.misc
  18. 0 1
      changelog.d/10935.misc
  19. 0 1
      changelog.d/10936.misc
  20. 0 1
      changelog.d/10939.misc
  21. 0 1
      changelog.d/10940.misc
  22. 0 1
      changelog.d/10945.misc
  23. 0 1
      changelog.d/10947.bugfix
  24. 0 1
      changelog.d/10954.feature
  25. 0 1
      changelog.d/10956.bugfix
  26. 0 1
      changelog.d/10958.misc
  27. 0 1
      changelog.d/10959.misc
  28. 0 1
      changelog.d/10960.bugfix
  29. 0 1
      changelog.d/10961.misc
  30. 0 1
      changelog.d/10962.bugfix
  31. 0 1
      changelog.d/10963.misc
  32. 0 1
      changelog.d/10966.misc
  33. 0 1
      changelog.d/10971.doc
  34. 0 1
      changelog.d/10973.doc
  35. 0 1
      changelog.d/10974.misc
  36. 0 1
      changelog.d/10981.bugfix
  37. 0 1
      changelog.d/10982.bugfix
  38. 0 1
      changelog.d/10983.misc
  39. 0 1
      changelog.d/10985.misc
  40. 0 1
      changelog.d/10986.misc
  41. 0 1
      changelog.d/10987.misc
  42. 0 1
      changelog.d/10988.misc
  43. 0 1
      changelog.d/10990.doc
  44. 0 1
      changelog.d/10991.doc
  45. 0 1
      changelog.d/10992.misc
  46. 0 1
      changelog.d/10993.misc
  47. 0 1
      changelog.d/10994.misc
  48. 0 1
      changelog.d/10995.bugfix
  49. 0 1
      changelog.d/11002.bugfix
  50. 0 1
      changelog.d/11003.bugfix
  51. 0 1
      changelog.d/11004.misc
  52. 0 1
      changelog.d/11005.misc
  53. 0 1
      changelog.d/11006.misc
  54. 0 1
      changelog.d/11010.misc
  55. 0 1
      changelog.d/11011.misc
  56. 0 1
      changelog.d/11017.misc
  57. 0 1
      changelog.d/11019.misc
  58. 0 1
      changelog.d/11021.misc
  59. 0 1
      changelog.d/11023.misc
  60. 0 1
      changelog.d/11028.feature
  61. 0 1
      changelog.d/11034.misc
  62. 0 1
      changelog.d/11042.bugfix
  63. 0 1
      changelog.d/11043.misc
  64. 0 1
      changelog.d/9655.feature
  65. 5 2
      debian/changelog
  66. 1 1
      synapse/__init__.py

+ 78 - 0
CHANGES.md

@@ -1,3 +1,81 @@
+Synapse 1.45.0rc1 (2021-10-12)
+==============================
+
+Features
+--------
+
+- Add [MSC3069](https://github.com/matrix-org/matrix-doc/pull/3069) support to `/account/whoami`. ([\#9655](https://github.com/matrix-org/synapse/issues/9655))
+- Support autodiscovery of oEmbed previews. ([\#10822](https://github.com/matrix-org/synapse/issues/10822))
+- Ensure `(room_id, next_batch_id)` is unique across [MSC2716](https://github.com/matrix-org/matrix-doc/pull/2716) insertion events in rooms to avoid cross-talk/conflicts between batches. ([\#10877](https://github.com/matrix-org/synapse/issues/10877))
+- Add a `user_may_send_3pid_invite` spam checker callback for modules to allow or deny 3PID invites. ([\#10894](https://github.com/matrix-org/synapse/issues/10894))
+- Add a spam checker callback to allow or deny room joins. ([\#10910](https://github.com/matrix-org/synapse/issues/10910))
+- Include an `update_synapse_database` script in the distribution. Contributed by @Fizzadar at Beeper. ([\#10954](https://github.com/matrix-org/synapse/issues/10954))
+- Include exception information in JSON logging output. Contributed by @Fizzadar at Beeper. ([\#11028](https://github.com/matrix-org/synapse/issues/11028))
+
+
+Bugfixes
+--------
+
+- Fix a minor bug in the response to `/_matrix/client/r0/voip/turnServer`. Contributed by @lukaslihotzki. ([\#10922](https://github.com/matrix-org/synapse/issues/10922))
+- Fix a bug where empty `yyyy-mm-dd/` directories would be left behind in the media store's `url_cache_thumbnails/` directory. ([\#10924](https://github.com/matrix-org/synapse/issues/10924))
+- Fix a bug introduced in Synapse v1.40.0 where the signature checks for room version 8/9 could be applied to earlier room versions in some situations. ([\#10927](https://github.com/matrix-org/synapse/issues/10927))
+- Fixes a long-standing bug wherin deactivated users still count towards the mau limit. ([\#10947](https://github.com/matrix-org/synapse/issues/10947))
+- Fix a long-standing bug which meant that events received over federation were sometimes incorrectly accepted into the room state. ([\#10956](https://github.com/matrix-org/synapse/issues/10956))
+- Fix a long-standing bug where rebuilding the user directory wouldn't exclude support and disabled users. ([\#10960](https://github.com/matrix-org/synapse/issues/10960))
+- Fix [MSC2716](https://github.com/matrix-org/matrix-doc/pull/2716) `/batch_send` endpoint rejecting subsequent batches with unknown batch ID error in existing room versions from the room creator. ([\#10962](https://github.com/matrix-org/synapse/issues/10962))
+- Fix a bug that could leak local users' per-room nicknames and avatars when the user directory is rebuilt. ([\#10981](https://github.com/matrix-org/synapse/issues/10981))
+- Fix a long-standing bug where the remainder of a batch of user directory changes would be silently dropped if the server left a room early in the batch. ([\#10982](https://github.com/matrix-org/synapse/issues/10982))
+- Correct a bugfix introduced in Synapse v1.44.0 that wouldn't catch every error of the connection breaks before a response could be written to it. ([\#10995](https://github.com/matrix-org/synapse/issues/10995))
+- Fix a long-standing bug where local users' per-room nicknames/avatars were visible to anyone who could see you in the user_directory. ([\#11002](https://github.com/matrix-org/synapse/issues/11002))
+- Fix a long-standing bug where a user's per-room nickname/avatar would overwrite their profile in the user directory when a room was made public. ([\#11003](https://github.com/matrix-org/synapse/issues/11003))
+- Work around a regression, introduced in Synapse 1.39.0, that caused `SynapseError`s raised by the experimental third-party rules module callback `check_event_allowed` to be ignored. ([\#11042](https://github.com/matrix-org/synapse/issues/11042))
+
+
+Improved Documentation
+----------------------
+
+- Change wording ("reference homeserver") in Synapse repository documentation. Contributed by @maxkratz. ([\#10971](https://github.com/matrix-org/synapse/issues/10971))
+- Fix a dead URL in development documentation (SAML) and change wording from "Riot" to "Element". Contributed by @maxkratz. ([\#10973](https://github.com/matrix-org/synapse/issues/10973))
+- Add additional content to the Welcome and Overview page of the documentation. ([\#10990](https://github.com/matrix-org/synapse/issues/10990))
+- Update links to MSCs in documentation. Contributed by @dklimpel. ([\#10991](https://github.com/matrix-org/synapse/issues/10991))
+
+
+Internal Changes
+----------------
+
+- Improve type hinting in `synapse.util`. ([\#10888](https://github.com/matrix-org/synapse/issues/10888))
+- Add further type hints to `synapse.storage.util`. ([\#10892](https://github.com/matrix-org/synapse/issues/10892))
+- Fix type hints to be compatible with an upcoming change to Twisted. ([\#10895](https://github.com/matrix-org/synapse/issues/10895))
+- Update utility code to handle C implementations of frozendict. ([\#10902](https://github.com/matrix-org/synapse/issues/10902))
+- Drop old functionality which maintained database compatibility with Synapse versions before 1.31. ([\#10903](https://github.com/matrix-org/synapse/issues/10903))
+- Clean-up configuration helper classes for the `ServerConfig` class. ([\#10915](https://github.com/matrix-org/synapse/issues/10915))
+- Use direct references to config flags. ([\#10916](https://github.com/matrix-org/synapse/issues/10916), [\#10959](https://github.com/matrix-org/synapse/issues/10959), [\#10985](https://github.com/matrix-org/synapse/issues/10985))
+- Clean up some of the federation event authentication code for clarity. ([\#10926](https://github.com/matrix-org/synapse/issues/10926), [\#10940](https://github.com/matrix-org/synapse/issues/10940), [\#10986](https://github.com/matrix-org/synapse/issues/10986), [\#10987](https://github.com/matrix-org/synapse/issues/10987), [\#10988](https://github.com/matrix-org/synapse/issues/10988), [\#11010](https://github.com/matrix-org/synapse/issues/11010), [\#11011](https://github.com/matrix-org/synapse/issues/11011))
+- Refactor various parts of the codebase to use `RoomVersion` objects instead of room version identifier strings. ([\#10934](https://github.com/matrix-org/synapse/issues/10934))
+- Refactor user directory tests in preparation for upcoming changes. ([\#10935](https://github.com/matrix-org/synapse/issues/10935))
+- Include the event id in the logcontext when handling PDUs received over federation. ([\#10936](https://github.com/matrix-org/synapse/issues/10936))
+- Fix logged errors in unit tests. ([\#10939](https://github.com/matrix-org/synapse/issues/10939))
+- Fix a broken test to ensure that consent configuration works during registration. ([\#10945](https://github.com/matrix-org/synapse/issues/10945))
+- Add type hints to filtering classes. ([\#10958](https://github.com/matrix-org/synapse/issues/10958))
+- Add type-hint to `HomeserverTestcase.setup_test_homeserver`. ([\#10961](https://github.com/matrix-org/synapse/issues/10961))
+- Fix the test utility function `create_room_as` so that `is_public=True` will explicitly set the `visibility` parameter of room creation requests to `public`. Contributed by @AndrewFerr. ([\#10963](https://github.com/matrix-org/synapse/issues/10963))
+- Make the release script more robust and transparent. ([\#10966](https://github.com/matrix-org/synapse/issues/10966))
+- Refactor [MSC2716](https://github.com/matrix-org/matrix-doc/pull/2716) `/batch_send` mega function into smaller handler functions. ([\#10974](https://github.com/matrix-org/synapse/issues/10974))
+- Log stack traces when a missing opentracing span is detected. ([\#10983](https://github.com/matrix-org/synapse/issues/10983))
+- Update GHA config to run tests against Python 3.10 and PostgreSQL 14. ([\#10992](https://github.com/matrix-org/synapse/issues/10992))
+- Fix a long-standing bug where `ReadWriteLock`s could drop logging contexts on exit. ([\#10993](https://github.com/matrix-org/synapse/issues/10993))
+- Add a `CODEOWNERS` file to automatically request reviews from the `@matrix-org/synapse-core` team on new pull requests. ([\#10994](https://github.com/matrix-org/synapse/issues/10994))
+- Add further type hints to `synapse.state`. ([\#11004](https://github.com/matrix-org/synapse/issues/11004))
+- Remove the deprecated `BaseHandler` object. ([\#11005](https://github.com/matrix-org/synapse/issues/11005))
+- Bump mypy version for CI to 0.910, and pull in new type stubs for dependencies. ([\#11006](https://github.com/matrix-org/synapse/issues/11006))
+- Fix CI to run the unit tests without optional deps. ([\#11017](https://github.com/matrix-org/synapse/issues/11017))
+- Ensure that cache config tests do not share state. ([\#11019](https://github.com/matrix-org/synapse/issues/11019))
+- Add additional type hints to `synapse.server_notices`. ([\#11021](https://github.com/matrix-org/synapse/issues/11021))
+- Add additional type hints for `synapse.push`. ([\#11023](https://github.com/matrix-org/synapse/issues/11023))
+- When installing the optional developer dependencies, also include the dependencies needed for type-checking and unit testing. ([\#11034](https://github.com/matrix-org/synapse/issues/11034))
+- Remove unnecessary list comprehension from `synapse_port_db` to satisfy code style requirements. ([\#11043](https://github.com/matrix-org/synapse/issues/11043))
+
+
 Synapse 1.44.0 (2021-10-05)
 ===========================
 

+ 0 - 1
changelog.d/10822.feature

@@ -1 +0,0 @@
-Support autodiscovery of oEmbed previews.

+ 0 - 1
changelog.d/10877.feature

@@ -1 +0,0 @@
-Ensure `(room_id, next_batch_id)` is unique across [MSC2716](https://github.com/matrix-org/matrix-doc/pull/2716) insertion events in rooms to avoid cross-talk/conflicts between batches.

+ 0 - 1
changelog.d/10888.misc

@@ -1 +0,0 @@
-Improve type hinting in `synapse.util`.

+ 0 - 1
changelog.d/10892.misc

@@ -1 +0,0 @@
-Add further type hints to `synapse.storage.util`.

+ 0 - 1
changelog.d/10894.feature

@@ -1 +0,0 @@
-Add a `user_may_send_3pid_invite` spam checker callback for modules to allow or deny 3PID invites.

+ 0 - 1
changelog.d/10895.misc

@@ -1 +0,0 @@
-Fix type hints to be compatible with an upcoming change to Twisted.

+ 0 - 1
changelog.d/10902.misc

@@ -1 +0,0 @@
-Update utility code to handle C implementations of frozendict.

+ 0 - 1
changelog.d/10903.misc

@@ -1 +0,0 @@
-Drop old functionality which maintained database compatibility with Synapse versions before 1.31.

+ 0 - 1
changelog.d/10910.feature

@@ -1 +0,0 @@
-Add a spam checker callback to allow or deny room joins.

+ 0 - 1
changelog.d/10915.misc

@@ -1 +0,0 @@
-Clean-up configuration helper classes for the `ServerConfig` class.

+ 0 - 1
changelog.d/10916.misc

@@ -1 +0,0 @@
-Use direct references to config flags.

+ 0 - 1
changelog.d/10922.bugfix

@@ -1 +0,0 @@
-Fix a minor bug in the response to `/_matrix/client/r0/voip/turnServer`. Contributed by @lukaslihotzki.

+ 0 - 1
changelog.d/10924.bugfix

@@ -1 +0,0 @@
-Fix a bug where empty `yyyy-mm-dd/` directories would be left behind in the media store's `url_cache_thumbnails/` directory.

+ 0 - 1
changelog.d/10926.misc

@@ -1 +0,0 @@
-Clean up some of the federation event authentication code for clarity.

+ 0 - 1
changelog.d/10927.bugfix

@@ -1 +0,0 @@
-Fix a bug introduced in Synapse v1.40.0 where the signature checks for room version 8/9 could be applied to earlier room versions in some situations.

+ 0 - 1
changelog.d/10934.misc

@@ -1 +0,0 @@
-Refactor various parts of the codebase to use `RoomVersion` objects instead of room version identifier strings.

+ 0 - 1
changelog.d/10935.misc

@@ -1 +0,0 @@
-Refactor user directory tests in preparation for upcoming changes.

+ 0 - 1
changelog.d/10936.misc

@@ -1 +0,0 @@
-Include the event id in the logcontext when handling PDUs received over federation.

+ 0 - 1
changelog.d/10939.misc

@@ -1 +0,0 @@
-Fix logged errors in unit tests.

+ 0 - 1
changelog.d/10940.misc

@@ -1 +0,0 @@
-Clean up some of the federation event authentication code for clarity.

+ 0 - 1
changelog.d/10945.misc

@@ -1 +0,0 @@
-Fix a broken test to ensure that consent configuration works during registration.

+ 0 - 1
changelog.d/10947.bugfix

@@ -1 +0,0 @@
-Fixes a long-standing bug wherin deactivated users still count towards the mau limit.

+ 0 - 1
changelog.d/10954.feature

@@ -1 +0,0 @@
-Include an `update_synapse_database` script in the distribution. Contributed by @Fizzadar at Beeper.

+ 0 - 1
changelog.d/10956.bugfix

@@ -1 +0,0 @@
-Fix a long-standing bug which meant that events received over federation were sometimes incorrectly accepted into the room state.

+ 0 - 1
changelog.d/10958.misc

@@ -1 +0,0 @@
-Add type hints to filtering classes.

+ 0 - 1
changelog.d/10959.misc

@@ -1 +0,0 @@
-Use direct references to config flags.

+ 0 - 1
changelog.d/10960.bugfix

@@ -1 +0,0 @@
-Fix a long-standing bug where rebuilding the user directory wouldn't exclude support and disabled users.

+ 0 - 1
changelog.d/10961.misc

@@ -1 +0,0 @@
-Add type-hint to `HomeserverTestcase.setup_test_homeserver`.

+ 0 - 1
changelog.d/10962.bugfix

@@ -1 +0,0 @@
-Fix [MSC2716](https://github.com/matrix-org/matrix-doc/pull/2716) `/batch_send` endpoint rejecting subsequent batches with unknown batch ID error in existing room versions from the room creator.

+ 0 - 1
changelog.d/10963.misc

@@ -1 +0,0 @@
-Fix the test utility function `create_room_as` so that `is_public=True` will explicitly set the `visibility` parameter of room creation requests to `public`. Contributed by @AndrewFerr.

+ 0 - 1
changelog.d/10966.misc

@@ -1 +0,0 @@
-Make the release script more robust and transparent.

+ 0 - 1
changelog.d/10971.doc

@@ -1 +0,0 @@
-Change wording ("reference homeserver") in Synapse repository documentation. Contributed by @maxkratz.

+ 0 - 1
changelog.d/10973.doc

@@ -1 +0,0 @@
-Fix a dead URL in development documentation (SAML) and change wording from "Riot" to "Element". Contributed by @maxkratz.

+ 0 - 1
changelog.d/10974.misc

@@ -1 +0,0 @@
-Refactor [MSC2716](https://github.com/matrix-org/matrix-doc/pull/2716) `/batch_send` mega function into smaller handler functions.

+ 0 - 1
changelog.d/10981.bugfix

@@ -1 +0,0 @@
-Fix a bug that could leak local users' per-room nicknames and avatars when the user directory is rebuilt.

+ 0 - 1
changelog.d/10982.bugfix

@@ -1 +0,0 @@
-Fix a long-standing bug where the remainder of a batch of user directory changes would be silently dropped if the server left a room early in the batch.

+ 0 - 1
changelog.d/10983.misc

@@ -1 +0,0 @@
-Log stack traces when a missing opentracing span is detected.

+ 0 - 1
changelog.d/10985.misc

@@ -1 +0,0 @@
-Use direct references to config flags.

+ 0 - 1
changelog.d/10986.misc

@@ -1 +0,0 @@
-Clean up some of the federation event authentication code for clarity.

+ 0 - 1
changelog.d/10987.misc

@@ -1 +0,0 @@
-Clean up some of the federation event authentication code for clarity.

+ 0 - 1
changelog.d/10988.misc

@@ -1 +0,0 @@
-Clean up some of the federation event authentication code for clarity.

+ 0 - 1
changelog.d/10990.doc

@@ -1 +0,0 @@
-Add additional content to the Welcome and Overview page of the documentation.

+ 0 - 1
changelog.d/10991.doc

@@ -1 +0,0 @@
-Update links to MSCs in documentation. Contributed by @dklimpel.

+ 0 - 1
changelog.d/10992.misc

@@ -1 +0,0 @@
-Update GHA config to run tests against Python 3.10 and PostgreSQL 14.

+ 0 - 1
changelog.d/10993.misc

@@ -1 +0,0 @@
-Fix a long-standing bug where `ReadWriteLock`s could drop logging contexts on exit.

+ 0 - 1
changelog.d/10994.misc

@@ -1 +0,0 @@
-Add a `CODEOWNERS` file to automatically request reviews from the `@matrix-org/synapse-core` team on new pull requests.

+ 0 - 1
changelog.d/10995.bugfix

@@ -1 +0,0 @@
-Correct a bugfix introduced in Synapse v1.44.0 that wouldn't catch every error of the connection breaks before a response could be written to it.

+ 0 - 1
changelog.d/11002.bugfix

@@ -1 +0,0 @@
-Fix a long-standing bug where local users' per-room nicknames/avatars were visible to anyone who could see you in the user_directory.

+ 0 - 1
changelog.d/11003.bugfix

@@ -1 +0,0 @@
-Fix a long-standing bug where a user's per-room nickname/avatar would overwrite their profile in the user directory when a room was made public.

+ 0 - 1
changelog.d/11004.misc

@@ -1 +0,0 @@
-Add further type hints to `synapse.state`.

+ 0 - 1
changelog.d/11005.misc

@@ -1 +0,0 @@
-Remove the deprecated `BaseHandler` object.

+ 0 - 1
changelog.d/11006.misc

@@ -1 +0,0 @@
-Bump mypy version for CI to 0.910, and pull in new type stubs for dependencies.

+ 0 - 1
changelog.d/11010.misc

@@ -1 +0,0 @@
-Clean up some of the federation event authentication code for clarity.

+ 0 - 1
changelog.d/11011.misc

@@ -1 +0,0 @@
-Clean up some of the federation event authentication code for clarity.

+ 0 - 1
changelog.d/11017.misc

@@ -1 +0,0 @@
-Fix CI to run the unit tests without optional deps.

+ 0 - 1
changelog.d/11019.misc

@@ -1 +0,0 @@
-Ensure that cache config tests do not share state.

+ 0 - 1
changelog.d/11021.misc

@@ -1 +0,0 @@
-Add additional type hints to `synapse.server_notices`.

+ 0 - 1
changelog.d/11023.misc

@@ -1 +0,0 @@
-Add additional type hints for `synapse.push`.

+ 0 - 1
changelog.d/11028.feature

@@ -1 +0,0 @@
-Include exception information in JSON logging output. Contributed by @Fizzadar at Beeper.

+ 0 - 1
changelog.d/11034.misc

@@ -1 +0,0 @@
-When installing the optional developer dependencies, also include the dependencies needed for type-checking and unit testing.

+ 0 - 1
changelog.d/11042.bugfix

@@ -1 +0,0 @@
-Work around a regression, introduced in Synapse 1.39.0, that caused `SynapseError`s raised by the experimental third-party rules module callback `check_event_allowed` to be ignored.

+ 0 - 1
changelog.d/11043.misc

@@ -1 +0,0 @@
-Remove unnecessary list comprehension from `synapse_port_db` to satisfy code style requirements.

+ 0 - 1
changelog.d/9655.feature

@@ -1 +0,0 @@
-Add [MSC3069](https://github.com/matrix-org/matrix-doc/pull/3069) support to `/account/whoami`.

+ 5 - 2
debian/changelog

@@ -1,9 +1,12 @@
-matrix-synapse-py3 (1.44.0~rc2+nmu1) UNRELEASED; urgency=medium
+matrix-synapse-py3 (1.45.0~rc1) stable; urgency=medium
 
   [ Nick @ Beeper ]
   * Include an `update_synapse_database` script in the distribution.
 
- -- root <root@f7b8a71098d3>  Mon, 04 Oct 2021 13:29:26 +0000
+  [ Synapse Packaging team ]
+  * New synapse release 1.45.0~rc1.
+
+ -- Synapse Packaging team <packages@matrix.org>  Tue, 12 Oct 2021 10:46:27 +0100
 
 matrix-synapse-py3 (1.44.0) stable; urgency=medium
 

+ 1 - 1
synapse/__init__.py

@@ -47,7 +47,7 @@ try:
 except ImportError:
     pass
 
-__version__ = "1.44.0"
+__version__ = "1.45.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