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

Merge 1.93 #82

Merged
merged 82 commits into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
7570109
Bump twisted from 22.10.0 to 23.8.0 (#16235)
dependabot[bot] Sep 5, 2023
dfcfa9f
Bump minimum supported Rust version to 1.61.0 (#16248)
erikjohnston Sep 5, 2023
36ae861
Bump regex from 1.9.4 to 1.9.5 (#16233)
dependabot[bot] Sep 5, 2023
ea75346
Track presence state per-device and combine to a user state. (#16066)
clokep Sep 5, 2023
8b5013d
Time out busy presence status & test multi-device busy (#16174)
clokep Sep 5, 2023
02bc590
Merge tag 'v1.92.0rc1' into develop
Sep 5, 2023
c9cec2d
Fix bug where we kept re-requesting a remote server's key repeatedly.…
erikjohnston Sep 5, 2023
b1d71c6
Add MSC4040 `matrix-fed` service lookups (#16137)
turt2live Sep 5, 2023
1e571cd
Fix appservices being unable to handle to_device messages for multipl…
Half-Shot Sep 5, 2023
4f1840a
Delete device messages asynchronously and in staged batches (#16240)
Sep 6, 2023
698f6fa
Allow modules to delete rooms. (#15997)
reivilibre Sep 6, 2023
e937e21
Add the ability to use `G` (GiB) and `T` (TiB) suffixes in configurat…
reivilibre Sep 6, 2023
ffe4ea1
Update rust in flake.nix: 1.70.0 -> 1.71.1 to address CVE-2023-38497 …
anoadragon453 Sep 6, 2023
35934b0
Add GCC and GNU Make to the Nix flake development environment so that…
reivilibre Sep 6, 2023
5130303
Apply missed suggestions from the review of #16090. (#16263)
reivilibre Sep 6, 2023
32fb264
Merge remote-tracking branch 'origin/release-v1.92' into develop
clokep Sep 6, 2023
fe69e7f
Handle "registration_enabled" parameter for CAS (#16262)
agrimpard Sep 6, 2023
13e9cad
Send the opentracing span information to appservices (#16227)
MTRNord Sep 6, 2023
a83f75a
Bump gitpython from 3.1.32 to 3.1.34 (#16267)
dependabot[bot] Sep 6, 2023
8940d1b
Add `/notifications` endpoint to workers (#16265)
erikjohnston Sep 7, 2023
1cd410a
Recheck if remote device is cached before requesting it (#16252)
erikjohnston Sep 7, 2023
d23c394
Reduce CPU overhead of change password endpoint (#16264)
erikjohnston Sep 8, 2023
583d596
Raise setuptools_rust version cap to 1.7.0 (#16277)
V02460 Sep 8, 2023
69b74d9
Avoid temporary storage of sensitive information. (#16272)
clokep Sep 8, 2023
9084429
Bump gitpython from 3.1.34 to 3.1.35 (#16279)
dependabot[bot] Sep 8, 2023
f43d994
Fix bug with new task scheduler using lots of CPU. (#16278)
erikjohnston Sep 8, 2023
5c8870c
Fix-up incorrect spellings in docs. (#16282)
clokep Sep 8, 2023
c1c6c95
Log values at DEBUG level with execute_values (#16281)
Sep 8, 2023
aa483cb
Update ruff config (#16283)
clokep Sep 8, 2023
a0ed55e
Upgrade CI run of Python 3.12 from rc1 to rc2 (#16280)
V02460 Sep 8, 2023
edd83f2
Improve type hints for attrs classes (#16276)
Sep 8, 2023
e8ebc73
Bump serde_json from 1.0.105 to 1.0.106 (#16296)
dependabot[bot] Sep 11, 2023
aafcaf2
Bump black from 23.7.0 to 23.9.1 (#16295)
dependabot[bot] Sep 11, 2023
ee65d8f
Bump mypy-zope from 1.0.0 to 1.0.1 (#16291)
dependabot[bot] Sep 11, 2023
f93cd6a
Bump types-setuptools from 68.0.0.3 to 68.2.0.0 (#16292)
dependabot[bot] Sep 11, 2023
b0e93b6
Bump types-pillow from 10.0.0.2 to 10.0.0.3 (#16293)
dependabot[bot] Sep 11, 2023
151e4bb
Filter out down hosts when retrying fetching device lists (#16298)
erikjohnston Sep 11, 2023
9400dc0
Add the List-Unsubscribe header for notification emails. (#16274)
clokep Sep 11, 2023
2b35626
Refactor storing of server keys (#16261)
erikjohnston Sep 12, 2023
16ef6f1
Stop purging tables which are slated for removal. (#16273)
clokep Sep 12, 2023
ba48c56
Bump mypy from 1.4.1 to 1.5.1. (#16300)
clokep Sep 12, 2023
12bee2d
Merge branch 'master' into develop
Sep 12, 2023
48387c5
Update changelog
Sep 12, 2023
ab13fb0
Improve logging of replication (#16309)
erikjohnston Sep 13, 2023
be3c7b0
Fix deleting device inbox when using background worker (#16311)
erikjohnston Sep 13, 2023
e9addf6
Don't schedule an async task on every sync (#16312)
erikjohnston Sep 13, 2023
d38d0df
Use StrCollection in additional places. (#16301)
clokep Sep 13, 2023
7afb5e0
Fix using dehydrated devices (MSC2697) & refresh tokens (#16288)
hanadi92 Sep 13, 2023
032cf84
Remove a reference cycle in background process (#16314)
erikjohnston Sep 13, 2023
9549217
Refactor `get_user_by_id` (#16316)
erikjohnston Sep 14, 2023
39dc5de
docs: Link to the Alpine Linux community package for Synapse (#16304)
6543 Sep 14, 2023
e9e2904
Speed up deleting to-device messages task (#16318)
erikjohnston Sep 14, 2023
3295970
Some minor performance fixes for task schedular (#16313)
erikjohnston Sep 14, 2023
edec0b9
Only use literal strings for process names (#16315)
erikjohnston Sep 15, 2023
2a0f86f
Convert `_insert_graph_receipts_txn` to `simple_upsert` (#16299)
realtyem Sep 15, 2023
dd44ee0
Add automatic purge after all users forget a room (#15488)
Sep 15, 2023
98d39e5
Merge branch 'master' into develop
erikjohnston Sep 15, 2023
d2eacfe
Bump docker/build-push-action from 4 to 5 (#16336)
dependabot[bot] Sep 18, 2023
47f9837
Bump docker/setup-qemu-action from 2 to 3 (#16338)
dependabot[bot] Sep 18, 2023
4cdc2ed
Bump docker/metadata-action from 4 to 5 (#16337)
dependabot[bot] Sep 18, 2023
ab5f4f9
Bump docker/login-action from 2 to 3 (#16339)
dependabot[bot] Sep 18, 2023
fedaebc
Bump typing-extensions from 4.7.1 to 4.8.0 (#16341)
dependabot[bot] Sep 18, 2023
6946209
Set email charset as utf-8 rather than utf8 (#16329)
jjatria Sep 18, 2023
5ad1714
Bump pillow from 10.0.0 to 10.0.1 (#16344)
dependabot[bot] Sep 18, 2023
4663d55
Mandate Pillow>=10.0.1 because of libwebp CVE (#16347)
Sep 18, 2023
63d28a8
Additional validation of receipts (#16327)
clokep Sep 18, 2023
85bfd47
Return an immutable value from get_latest_event_ids_in_room. (#16326)
clokep Sep 18, 2023
c1e244c
Make cached account data/tags/admin types immutable (#16325)
clokep Sep 18, 2023
eef2b9e
Filter locked users in the admin API (#16328)
hanadi92 Sep 18, 2023
47d4bb6
Stop patching EventBase.__eq__ in tests. (#16349)
clokep Sep 18, 2023
1f36041
Merge branch 'master' into develop
Sep 18, 2023
eee2b66
Bump ruff from 0.0.286 to 0.0.290 (#16342)
dependabot[bot] Sep 18, 2023
118036e
Test against PostgreSQL 16. (#16351)
clokep Sep 18, 2023
83f73d5
Bump furo from 2023.8.19 to 2023.9.10 (#16340)
dependabot[bot] Sep 18, 2023
1f477d6
Bump serde_json from 1.0.106 to 1.0.107 (#16345)
dependabot[bot] Sep 18, 2023
3d60b07
Use string for federation_client_minimum_tls_version documentation ex…
jcgruenhage Sep 19, 2023
9caeb9b
1.93.0rc1
clokep Sep 19, 2023
ac29335
Tweak changelog.
clokep Sep 19, 2023
4345ca0
Update changelog.
clokep Sep 19, 2023
88ba67e
1.93.0
erikjohnston Sep 26, 2023
fef9b3a
Merge tag 'v1.93.0' into merge-1.93
Fizzadar Oct 27, 2023
de56947
Fix missing import
Fizzadar Oct 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .ci/scripts/calculate_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def set_output(key: str, value: str):
"database": "sqlite",
"extras": "all",
}
for version in ("3.9", "3.10", "3.11", "3.12.0-rc.1")
for version in ("3.9", "3.10", "3.11", "3.12.0-rc.2")
)

trial_postgres_tests = [
Expand All @@ -64,7 +64,7 @@ def set_output(key: str, value: str):
{
"python-version": "3.11",
"database": "postgres",
"postgres-version": "15",
"postgres-version": "16",
"extras": "all",
}
)
Expand Down
121 changes: 114 additions & 7 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,101 @@
# Synapse 1.93.0 (2023-09-26)

No significant changes since 1.93.0rc1.


## Security advisory

The following issues are fixed in 1.93.0 (and RCs).

- [GHSA-4f74-84v3-j9q5](https://github.com/matrix-org/synapse/security/advisories/GHSA-4f74-84v3-j9q5) / [CVE-2023-41335](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-41335) — Low Severity

Temporary storage of plaintext passwords during password changes.

- [GHSA-7565-cq32-vx2x](https://github.com/matrix-org/synapse/security/advisories/GHSA-7565-cq32-vx2x) / [CVE-2023-42453](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-42453) — Low Severity

Improper validation of receipts allows forged read receipts.

See the advisories for more details. If you have any questions, email [email protected].


# Synapse 1.93.0rc1 (2023-09-19)

### Features

- Add automatic purge after all users have forgotten a room. ([\#15488](https://github.com/matrix-org/synapse/issues/15488))
- Restore room purge/shutdown after a Synapse restart. ([\#15488](https://github.com/matrix-org/synapse/issues/15488))
- Support resolving homeservers using `matrix-fed` DNS SRV records from [MSC4040](https://github.com/matrix-org/matrix-spec-proposals/pull/4040). ([\#16137](https://github.com/matrix-org/synapse/issues/16137))
- Add the ability to use `G` (GiB) and `T` (TiB) suffixes in configuration options that refer to numbers of bytes. ([\#16219](https://github.com/matrix-org/synapse/issues/16219))
- Add span information to requests sent to appservices. Contributed by MTRNord. ([\#16227](https://github.com/matrix-org/synapse/issues/16227))
- Add the ability to enable/disable registrations when using CAS. Contributed by Aurélien Grimpard. ([\#16262](https://github.com/matrix-org/synapse/issues/16262))
- Allow the `/notifications` endpoint to be routed to workers. ([\#16265](https://github.com/matrix-org/synapse/issues/16265))
- Enable users to easily unsubscribe to notifications emails via the `List-Unsubscribe` header. ([\#16274](https://github.com/matrix-org/synapse/issues/16274))
- Report whether a user is `locked` in the [List Accounts admin API](https://matrix-org.github.io/synapse/latest/admin_api/user_admin_api.html#list-accounts), and exclude locked users by default. ([\#16328](https://github.com/matrix-org/synapse/issues/16328))

### Bugfixes

- Fix a long-standing bug where multi-device accounts could cause high load due to presence. ([\#16066](https://github.com/matrix-org/synapse/issues/16066), [\#16170](https://github.com/matrix-org/synapse/issues/16170), [\#16171](https://github.com/matrix-org/synapse/issues/16171), [\#16172](https://github.com/matrix-org/synapse/issues/16172), [\#16174](https://github.com/matrix-org/synapse/issues/16174))
- Fix a long-standing bug where appservices using [MSC2409](https://github.com/matrix-org/matrix-spec-proposals/pull/2409) to receive `to_device` messages would only get messages for one user. ([\#16251](https://github.com/matrix-org/synapse/issues/16251))
- Fix bug when using workers where Synapse could end up re-requesting the same remote device repeatedly. ([\#16252](https://github.com/matrix-org/synapse/issues/16252))
- Fix long-standing bug where we kept re-requesting a remote server's key repeatedly, potentially causing delays in receiving events over federation. ([\#16257](https://github.com/matrix-org/synapse/issues/16257))
- Avoid temporary storage of sensitive information. ([\#16272](https://github.com/matrix-org/synapse/issues/16272))
- Fix bug introduced in Synapse 1.49.0 when using dehydrated devices ([MSC2697](https://github.com/matrix-org/matrix-spec-proposals/pull/2697)) and refresh tokens. Contributed by Hanadi. ([\#16288](https://github.com/matrix-org/synapse/issues/16288))
- Fix a long-standing bug where invalid receipts would be accepted. ([\#16327](https://github.com/matrix-org/synapse/issues/16327))
- Use standard name for UTF-8 charset in emails. ([\#16329](https://github.com/matrix-org/synapse/issues/16329))
- Don't try refetching device lists for users on remote hosts that are marked as "down". ([\#16298](https://github.com/matrix-org/synapse/issues/16298))

### Improved Documentation

- Fix typos in the documentation. ([\#16282](https://github.com/matrix-org/synapse/issues/16282))
- Link to the Alpine Linux community package for Synapse. ([\#16304](https://github.com/matrix-org/synapse/issues/16304))
- Use string for `federation_client_minimum_tls_version` documentation examples. Contributed by @jcgruenhage. ([\#16353](https://github.com/matrix-org/synapse/issues/16353))

### Internal Changes

- Allow modules to delete rooms. ([\#15997](https://github.com/matrix-org/synapse/issues/15997))
- Add GCC and GNU Make to the Nix flake development environment so that `ruff` can be compiled. ([\#16090](https://github.com/matrix-org/synapse/issues/16090), [\#16263](https://github.com/matrix-org/synapse/issues/16263))
- Fix type checking when using the new version of Twisted. ([\#16235](https://github.com/matrix-org/synapse/issues/16235))
- Delete device messages asynchronously and in staged batches using the task scheduler. ([\#16240](https://github.com/matrix-org/synapse/issues/16240), [\#16311](https://github.com/matrix-org/synapse/issues/16311), [\#16312](https://github.com/matrix-org/synapse/issues/16312), [\#16313](https://github.com/matrix-org/synapse/issues/16313))
- Bump minimum supported Rust version to 1.61.0. ([\#16248](https://github.com/matrix-org/synapse/issues/16248))
- Update rust to version 1.71.1 in the nix development environment. ([\#16260](https://github.com/matrix-org/synapse/issues/16260))
- Simplify server key storage. ([\#16261](https://github.com/matrix-org/synapse/issues/16261))
- Reduce CPU overhead of change password endpoint. ([\#16264](https://github.com/matrix-org/synapse/issues/16264))
- Stop purging from tables slated for removal. ([\#16273](https://github.com/matrix-org/synapse/issues/16273))
- Improve type hints. ([\#16276](https://github.com/matrix-org/synapse/issues/16276), [\#16301](https://github.com/matrix-org/synapse/issues/16301), [\#16325](https://github.com/matrix-org/synapse/issues/16325), [\#16326](https://github.com/matrix-org/synapse/issues/16326))
- Raise `setuptools_rust` version cap to 1.7.0. ([\#16277](https://github.com/matrix-org/synapse/issues/16277))
- Fix using the new task scheduler causing lots of CPU to be used. ([\#16278](https://github.com/matrix-org/synapse/issues/16278))
- Upgrade CI run of Python 3.12 from rc1 to rc2. ([\#16280](https://github.com/matrix-org/synapse/issues/16280))
- Include values in SQL debug when using `execute_values` with Postgres. ([\#16281](https://github.com/matrix-org/synapse/issues/16281))
- Enable additional linting checks. ([\#16283](https://github.com/matrix-org/synapse/issues/16283))
- Refactor `receipts_graph` Postgres transactions to stop error messages. ([\#16299](https://github.com/matrix-org/synapse/issues/16299))
- Small improvements to logging in replication code. ([\#16309](https://github.com/matrix-org/synapse/issues/16309))
- Remove a reference cycle in background processes. ([\#16314](https://github.com/matrix-org/synapse/issues/16314))
- Only use literal strings for background process names. ([\#16315](https://github.com/matrix-org/synapse/issues/16315))
- Refactor `get_user_by_id`. ([\#16316](https://github.com/matrix-org/synapse/issues/16316))
- Speed up task to delete to-device messages. ([\#16318](https://github.com/matrix-org/synapse/issues/16318))
- Avoid patching code in tests. ([\#16349](https://github.com/matrix-org/synapse/issues/16349))
- Test against PostgreSQL 16. ([\#16351](https://github.com/matrix-org/synapse/issues/16351))

### Updates to locked dependencies

* Bump mypy from 1.4.1 to 1.5.1. ([\#16300](https://github.com/matrix-org/synapse/issues/16300))
* Bump black from 23.7.0 to 23.9.1. ([\#16295](https://github.com/matrix-org/synapse/issues/16295))
* Bump docker/build-push-action from 4 to 5. ([\#16336](https://github.com/matrix-org/synapse/issues/16336))
* Bump docker/login-action from 2 to 3. ([\#16339](https://github.com/matrix-org/synapse/issues/16339))
* Bump docker/metadata-action from 4 to 5. ([\#16337](https://github.com/matrix-org/synapse/issues/16337))
* Bump docker/setup-qemu-action from 2 to 3. ([\#16338](https://github.com/matrix-org/synapse/issues/16338))
* Bump furo from 2023.8.19 to 2023.9.10. ([\#16340](https://github.com/matrix-org/synapse/issues/16340))
* Bump gitpython from 3.1.32 to 3.1.35. ([\#16267](https://github.com/matrix-org/synapse/issues/16267), [\#16279](https://github.com/matrix-org/synapse/issues/16279))
* Bump mypy-zope from 1.0.0 to 1.0.1. ([\#16291](https://github.com/matrix-org/synapse/issues/16291))
* Bump pillow from 10.0.0 to 10.0.1. ([\#16344](https://github.com/matrix-org/synapse/issues/16344))
* Bump regex from 1.9.4 to 1.9.5. ([\#16233](https://github.com/matrix-org/synapse/issues/16233))
* Bump ruff from 0.0.286 to 0.0.290. ([\#16342](https://github.com/matrix-org/synapse/issues/16342))
* Bump serde_json from 1.0.105 to 1.0.107. ([\#16296](https://github.com/matrix-org/synapse/issues/16296), [\#16345](https://github.com/matrix-org/synapse/issues/16345))
* Bump twisted from 22.10.0 to 23.8.0. ([\#16235](https://github.com/matrix-org/synapse/issues/16235))
* Bump types-pillow from 10.0.0.2 to 10.0.0.3. ([\#16293](https://github.com/matrix-org/synapse/issues/16293))
* Bump types-setuptools from 68.0.0.3 to 68.2.0.0. ([\#16292](https://github.com/matrix-org/synapse/issues/16292))
* Bump typing-extensions from 4.7.1 to 4.8.0. ([\#16341](https://github.com/matrix-org/synapse/issues/16341))

# Synapse 1.92.3 (2023-09-18)

This is again a security update targeted at mitigating [CVE-2023-4863](https://cve.org/CVERecord?id=CVE-2023-4863).
Expand Down Expand Up @@ -29,11 +127,19 @@ This is a Docker-only update to mitigate [CVE-2023-4863](https://cve.org/CVEReco

# Synapse 1.92.1 (2023-09-12)

Stop building Ubuntu Kinetic since it is EOL and repos seem to be dead.
This minor release was needed only because of CI-related trouble on [v1.92.0](https://github.com/matrix-org/synapse/releases/tag/v1.92.0), which was never released.

### Internal Changes

- Stop building Ubuntu Kinetic since it is EOL and repos seem to be dead.


# Synapse 1.92.0 (2023-09-12)

This release includes the same [bugfix](https://github.com/matrix-org/synapse/issues/16258) as Synapse 1.91.2.

This version was never released following a CI build failure, cf [v1.92.1 changelog](https://github.com/matrix-org/synapse/releases/tag/v1.92.1).

### Bugfixes

- Revert [MSC3861](https://github.com/matrix-org/matrix-spec-proposals/pull/3861) introspection cache, admin impersonation and account lock. ([\#16258](https://github.com/matrix-org/synapse/issues/16258))
Expand All @@ -44,6 +150,13 @@ Stop building Ubuntu Kinetic since it is EOL and repos seem to be dead.
- Update the release script to work on macOS. ([\#16266](https://github.com/matrix-org/synapse/issues/16266))


# Synapse 1.91.2 (2023-09-06)

### Bugfixes

- Revert [MSC3861](https://github.com/matrix-org/matrix-spec-proposals/pull/3861) introspection cache, admin impersonation and account lock. ([\#16258](https://github.com/matrix-org/synapse/issues/16258))


# Synapse 1.92.0rc1 (2023-09-05)

### Features
Expand Down Expand Up @@ -99,12 +212,6 @@ Stop building Ubuntu Kinetic since it is EOL and repos seem to be dead.
* Bump types-psycopg2 from 2.9.21.10 to 2.9.21.11. ([\#16200](https://github.com/matrix-org/synapse/issues/16200))
* Bump types-pyyaml from 6.0.12.10 to 6.0.12.11. ([\#16199](https://github.com/matrix-org/synapse/issues/16199))

# Synapse 1.91.2 (2023-09-06)

### Bugfixes

- Revert [MSC3861](https://github.com/matrix-org/matrix-spec-proposals/pull/3861) introspection cache, admin impersonation and account lock. ([\#16258](https://github.com/matrix-org/synapse/issues/16258))


# Synapse 1.91.1 (2023-09-04)

Expand Down
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions contrib/cmdclient/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def put_json(self, url, data):
Deferred: Succeeds when we get a 2xx HTTP response. The result
will be the decoded JSON body.
"""
pass

def get_json(self, url, args=None):
"""Gets some json from the given host homeserver and path
Expand All @@ -53,7 +52,6 @@ def get_json(self, url, args=None):
Deferred: Succeeds when we get a 2xx HTTP response. The result
will be the decoded JSON body.
"""
pass


class TwistedHttpClient(HttpClient):
Expand Down
12 changes: 12 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
matrix-synapse-py3 (1.93.0) stable; urgency=medium

* New Synapse release 1.93.0.

-- Synapse Packaging team <[email protected]> Tue, 26 Sep 2023 15:54:40 +0100

matrix-synapse-py3 (1.93.0~rc1) stable; urgency=medium

* New synapse release 1.93.0rc1.

-- Synapse Packaging team <[email protected]> Tue, 19 Sep 2023 11:55:00 +0000

matrix-synapse-py3 (1.92.3) stable; urgency=medium

* New Synapse release 1.92.3.
Expand Down
1 change: 1 addition & 0 deletions docker/configure_workers_and_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@
"^/_matrix/client/(r0|v3|unstable)/password_policy$",
"^/_matrix/client/(api/v1|r0|v3|unstable)/directory/room/.*$",
"^/_matrix/client/(r0|v3|unstable)/capabilities$",
"^/_matrix/client/(r0|v3|unstable)/notifications$",
],
"shared_extra_conf": {},
"worker_extra_conf": "",
Expand Down
2 changes: 1 addition & 1 deletion docker/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def main(args: List[str], environ: MutableMapping[str, str]) -> None:
log("Could not find %s, will not use" % (jemallocpath,))

# if there are no config files passed to synapse, try adding the default file
if not any(p.startswith("--config-path") or p.startswith("-c") for p in args):
if not any(p.startswith(("--config-path", "-c")) for p in args):
config_dir = environ.get("SYNAPSE_CONFIG_DIR", "/data")
config_path = environ.get(
"SYNAPSE_CONFIG_PATH", config_dir + "/homeserver.yaml"
Expand Down
17 changes: 12 additions & 5 deletions docs/admin_api/user_admin_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ It returns a JSON body like the following:
"external_id": "<user_id_provider_2>"
}
],
"user_type": null
"user_type": null,
"locked": false
}
```

Expand Down Expand Up @@ -103,7 +104,8 @@ with a body of:
],
"admin": false,
"deactivated": false,
"user_type": null
"user_type": null,
"locked": false
}
```

Expand Down Expand Up @@ -184,7 +186,8 @@ A response body like the following is returned:
"shadow_banned": 0,
"displayname": "<User One>",
"avatar_url": null,
"creation_ts": 1560432668000
"creation_ts": 1560432668000,
"locked": false
}, {
"name": "<user_id2>",
"is_guest": 0,
Expand All @@ -195,7 +198,8 @@ A response body like the following is returned:
"shadow_banned": 0,
"displayname": "<User Two>",
"avatar_url": "<avatar_url>",
"creation_ts": 1561550621000
"creation_ts": 1561550621000,
"locked": false
}
],
"next_token": "100",
Expand Down Expand Up @@ -249,6 +253,8 @@ The following parameters should be set in the URL:
- `not_user_type` - Exclude certain user types, such as bot users, from the request.
Can be provided multiple times. Possible values are `bot`, `support` or "empty string".
"empty string" here means to exclude users without a type.
- `locked` - string representing a bool - Is optional and if `true` will **include** locked users.
Defaults to `false` to exclude locked users. Note: Introduced in v1.93.

Caution. The database only has indexes on the columns `name` and `creation_ts`.
This means that if a different sort order is used (`is_guest`, `admin`,
Expand All @@ -274,10 +280,11 @@ The following fields are returned in the JSON response body:
- `avatar_url` - string - The user's avatar URL if they have set one.
- `creation_ts` - integer - The user's creation timestamp in ms.
- `last_seen_ts` - integer - The user's last activity timestamp in ms.

- `locked` - bool - Status if that user has been marked as locked. Note: Introduced in v1.93.
- `next_token`: string representing a positive integer - Indication for pagination. See above.
- `total` - integer - Total number of media.

*Added in Synapse 1.93:* the `locked` query parameter and response field.

## Query current sessions for a user

Expand Down
2 changes: 1 addition & 1 deletion docs/ancient_architecture_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Server with a domain specific API.
1. **Messaging Layer**

This is what the rest of the homeserver hits to send messages, join rooms,
etc. It also allows you to register callbacks for when it get's notified by
etc. It also allows you to register callbacks for when it gets notified by
lower levels that e.g. a new message has been received.

It is responsible for serializing requests to send to the data
Expand Down
Loading
Loading