Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2020-09-08 | Add type hints for persist events github/erikj/events_store erikj/events_store | Erik Johnston | 2 | -12/+25 | |
2020-09-08 | Add types to StreamToken and RoomStreamToken (#8279) | Erik Johnston | 5 | -91/+95 | |
The intention here is to change `StreamToken.room_key` to be a `RoomStreamToken` in a future PR, but that is a big enough change without this refactoring too. | |||||
2020-09-08 | Add a config option for validating 'next_link' parameters against a domain ↵ | Andrew Morgan | 5 | -17/+204 | |
whitelist (#8275) This is a config option ported over from DINUM's Sydent: https://github.com/matrix-org/sydent/pull/285 They've switched to validating 3PIDs via Synapse rather than Sydent, and would like to retain this functionality. This original purpose for this change is phishing prevention. This solution could also potentially be replaced by a similar one to https://github.com/matrix-org/synapse/pull/8004, but across all `*/submit_token` endpoint. This option may still be useful to enterprise even with that safeguard in place though, if they want to be absolutely sure that their employees don't follow links to other domains. | |||||
2020-09-08 | Clean up types for PaginationConfig (#8250) | Erik Johnston | 7 | -86/+52 | |
This removes `SourcePaginationConfig` and `get_pagination_rows`. The reasoning behind this is that these generic classes/functions erased the types of the IDs it used (i.e. instead of passing around `StreamToken` it'd pass in e.g. `token.room_key`, which don't have uniform types). | |||||
2020-09-08 | Use the right constructor for log records (#8278) | Richard van der Hoff | 2 | -3/+4 | |
Update `log_function` to use the right factory to create log records, to make sure that they have `request` attributes. Fixes: #8267. | |||||
2020-09-08 | Fix `MultiWriterIdGenerator.current_position`. (#8257) | Erik Johnston | 3 | -6/+88 | |
It did not correctly handle IDs finishing being persisted out of order, resulting in the `current_position` lagging until new IDs are persisted. | |||||
2020-09-08 | fix typo v1.20.0rc1 | Richard van der Hoff | 1 | -1/+1 | |
2020-09-08 | s/fixes/fix/ | Richard van der Hoff | 1 | -2/+2 | |
2020-09-08 | 1.20.0rc1 | Richard van der Hoff | 116 | -123/+80 | |
2020-09-08 | Directly import json from the standard library. (#8259) | Patrick Cloke | 5 | -6/+7 | |
By importing from canonicaljson the simplejson module was still being used in some situations. After this change the std lib json is consistenty used throughout Synapse. | |||||
2020-09-08 | Allow for make_awaitable's return value to be re-used. (#8261) | Patrick Cloke | 12 | -70/+56 | |
2020-09-08 | Rename 'populate_stats_process_rooms_2' background job back to ↵ | Andrew Morgan | 4 | -39/+35 | |
'populate_stats_process_rooms' again (#8243) Fixes https://github.com/matrix-org/synapse/issues/8238 Alongside the delta file, some changes were also necessary to the codebase to remove references to the now defunct `populate_stats_process_rooms_2` background job. Thankfully the latter doesn't seem to have made it into any documentation yet :) | |||||
2020-09-08 | Systemd docs: configure workers to start after main process. (#8276) | Richard van der Hoff | 2 | -0/+6 | |
2020-09-07 | Only add rows to the push actions table if the event notifies or should be ↵ | Brendan Abolivier | 2 | -1/+7 | |
marked unread (#8274) | |||||
2020-09-07 | Fix stack overflow when logging system encounters an error (#8268) | Richard van der Hoff | 2 | -2/+24 | |
2020-09-07 | Avoid table-scanning users at startup (#8271) | Richard van der Hoff | 2 | -11/+15 | |
This takes about 10 seconds in the best case; often more. | |||||
2020-09-07 | Fix unread count failing on NULL values (#8270) | Brendan Abolivier | 2 | -1/+7 | |
Fix unread counts making sync fail if the value of the `unread_count` column in `event_push_summary` is `None`. | |||||
2020-09-07 | Add more logging to debug slow startup (#8264) | Richard van der Hoff | 5 | -7/+33 | |
I'm hoping this will provide some pointers for debugging https://github.com/matrix-org/synapse/issues/7968. | |||||
2020-09-07 | Refuse to upgrade database on worker processes (#8266) | Richard van der Hoff | 2 | -17/+62 | |
2020-09-07 | Bump canonicaljson to version 1.4.0 (#8262) | Alexandre Morignot | 2 | -1/+2 | |
The version 1.3.0 has a bug with unicode charecters: ``` >>> from canonicaljson import encode_pretty_printed_json >>> encode_pretty_printed_json({'a': 'à'}) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/erdnaxeli/.pyenv/versions/3.6.7/lib/python3.6/site-packages/canonicaljson.py", line 96, in encode_pretty_printed_json return _pretty_encoder.encode(json_object).encode("ascii") UnicodeEncodeError: 'ascii' codec can't encode character '\xe0' in position 12: ordinal not in range(128) ``` Signed-off-by: Alexandre Morignot <erdnaxeli@cervoi.se> Co-authored-by: Alexandre Morignot <erdnaxeli@cervoi.se> | |||||
2020-09-07 | Run database updates in a transaction (#8265) | Richard van der Hoff | 2 | -5/+23 | |
Fixes: #6467 | |||||
2020-09-07 | Add tests for `last_successful_stream_ordering` (#8258) | reivilibre | 2 | -0/+77 | |
2020-09-04 | In light of #8255, use BIGINTs for destination_rooms (#8256) | reivilibre | 2 | -1/+2 | |
2020-09-04 | Catch up after Federation Outage (split, 2): Track last successful stream ↵ | reivilibre | 4 | -0/+71 | |
ordering after transmission (#8247) Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | |||||
2020-09-04 | Add cross-signing sigs to the `keys` object (#8234) | Richard van der Hoff | 3 | -34/+18 | |
All the callers want this info in the same place, so let's reduce the duplication by doing it here. | |||||
2020-09-04 | Unread counts fixes (#8254) | Brendan Abolivier | 3 | -4/+5 | |
* Fixup `ALTER TABLE` database queries Make the new columns nullable, because doing otherwise can wedge a server with a big database, as setting a default value rewrites the table. * Switch back to using the notifications count in the push badge Clients are likely to be confused if we send a push but the badge count is the unread messages one, and not the notifications one. * Changelog | |||||
2020-09-04 | Fix a regression from calling read_templates. (#8252) | Patrick Cloke | 2 | -1/+2 | |
Regressed in #8037. | |||||
2020-09-04 | Catch-up after Federation Outage (split, 1) (#8230) | reivilibre | 7 | -7/+201 | |
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | |||||
2020-09-04 | Fix type signature in simple_select_one_onecol and friends (#8241) | reivilibre | 2 | -10/+8 | |
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> | |||||
2020-09-04 | Stop sub-classing object (#8249) | Patrick Cloke | 168 | -292/+293 | |
2020-09-04 | Revert "Add experimental support for sharding event persister. (#8170)" (#8242) | Brendan Abolivier | 19 | -206/+78 | |
* Revert "Add experimental support for sharding event persister. (#8170)" This reverts commit 82c1ee1c22a87b9e6e3179947014b0f11c0a1ac3. * Changelog | |||||
2020-09-03 | Add type hints to more handlers (#8244) | Erik Johnston | 5 | -79/+110 | |
2020-09-03 | Remove obsolete order field in `send_new_transaction` (#8245) | reivilibre | 4 | -28/+23 | |
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | |||||
2020-09-03 | Split fetching device keys and signatures into two transactions (#8233) | Richard van der Hoff | 2 | -44/+66 | |
I think this is simpler (and moves stuff out of the db threads) | |||||
2020-09-03 | Fix typing for `@cached` wrapped functions (#8240) | Erik Johnston | 5 | -20/+121 | |
This requires adding a mypy plugin to fiddle with the type signatures a bit. | |||||
2020-09-03 | Remove useless changelog about reverting a #8239. | Patrick Cloke | 1 | -1/+0 | |
2020-09-03 | Revert pinning of setuptools (#8239) | Patrick Cloke | 4 | -6/+2 | |
2020-09-03 | Fix typing for SyncHandler (#8237) | Erik Johnston | 4 | -10/+13 | |
2020-09-03 | wrap `_get_e2e_device_keys_and_signatures_txn` in a non-txn method (#8231) | Richard van der Hoff | 3 | -17/+40 | |
We have three things which all call `_get_e2e_device_keys_and_signatures_txn` with their own `runInteraction`. Factor out the common code. | |||||
2020-09-02 | Add an overload for simple_select_one_onecol_txn. (#8235) | Patrick Cloke | 2 | -0/+25 | |
2020-09-02 | Convert runInteraction to async/await (#8156) | Patrick Cloke | 2 | -15/+15 | |
2020-09-02 | Add StreamStore to mypy (#8232) | Erik Johnston | 5 | -20/+66 | |
2020-09-02 | Re-implement unread counts (again) (#8059) | Brendan Abolivier | 12 | -122/+457 | |
2020-09-02 | Refactor `_get_e2e_device_keys_for_federation_query_txn` (#8225) | Richard van der Hoff | 2 | -11/+7 | |
We can use the existing `_get_e2e_device_keys_and_signatures_txn` instead of creating our own txn function | |||||
2020-09-02 | Add experimental support for sharding event persister. (#8170) | Erik Johnston | 18 | -77/+206 | |
This is *not* ready for production yet. Caveats: 1. We should write some tests... 2. The stream token that we use for events can get stalled at the minimum position of all writers. This means that new events may not be processed and e.g. sent down sync streams if a writer isn't writing or is slow. | |||||
2020-09-02 | Add /user/{user_id}/shared_rooms/ api (#7785) | Will Hunt | 8 | -1/+270 | |
* Add shared_rooms api * Add changelog * Add . * Wrap response in {"rooms": } * linting * Add unstable_features key * Remove options from isort that aren't part of 5.x `-y` and `-rc` are now default behaviour and no longer exist. `dont-skip` is no longer required https://timothycrosley.github.io/isort/CHANGELOG/#500-penny-july-4-2020 * Update imports to make isort happy * Add changelog * Update tox.ini file with correct invocation * fix linting again for isort * Vendor prefix unstable API * Fix to match spec * import Codes * import Codes * Use FORBIDDEN * Update changelog.d/7785.feature Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> * Implement get_shared_rooms_for_users * a comma * trailing whitespace * Handle the easy feedback * Switch to using runInteraction * Add tests * Feedback * Seperate unstable endpoint from v2 * Add upgrade node * a line * Fix style by adding a blank line at EOF. * Update synapse/storage/databases/main/user_directory.py Co-authored-by: Tulir Asokan <tulir@maunium.net> * Update synapse/storage/databases/main/user_directory.py Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> * Update UPGRADE.rst Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> * Fix UPGRADE/CHANGELOG unstable paths unstable unstable unstable Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Co-authored-by: Tulir Asokan <tulir@maunium.net> Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> Co-authored-by: Tulir Asokan <tulir@maunium.net> | |||||
2020-09-02 | Do not try to store invalid data in the stats table (#8226) | Patrick Cloke | 2 | -8/+27 | |
2020-09-02 | Convert the main methods run by the reactor to async. (#8213) | Patrick Cloke | 3 | -21/+18 | |
2020-09-02 | Make _get_e2e_device_keys_and_signatures_txn return an attrs (#8224) | Richard van der Hoff | 3 | -20/+41 | |
this makes it a bit clearer what's going on. | |||||
2020-09-01 | Fix errors when updating the user directory with invalid data (#8223) | Patrick Cloke | 4 | -1/+19 | |
2020-09-01 | Explain better what GDPR-erased means (#8189) | Brendan Abolivier | 2 | -3/+6 | |
Fixes https://github.com/matrix-org/synapse/issues/8185 | |||||
2020-09-01 | Convert additional databases to async/await part 3 (#8201) | Patrick Cloke | 7 | -87/+121 | |
2020-09-01 | Convert appservice code to async/await. (#8207) | Patrick Cloke | 2 | -8/+12 | |
2020-09-01 | Rename `_get_e2e_device_keys_txn` (#8222) | Richard van der Hoff | 3 | -6/+9 | |
... to `_get_e2e_device_keys_and_signatures_txn`, to better reflect what it does. | |||||
2020-09-01 | Convert additional databases to async/await (#8199) | Patrick Cloke | 7 | -137/+147 | |
2020-09-01 | Convert the well known resolver to async (#8214) | Patrick Cloke | 5 | -34/+53 | |
2020-09-01 | Convert additional databases to async/await part 2 (#8200) | Patrick Cloke | 15 | -81/+111 | |
2020-09-01 | Make MultiWriterIDGenerator work for streams that use negative stream IDs ↵ | Erik Johnston | 3 | -11/+134 | |
(#8203) This is so that we can use it for the backfill events stream. | |||||
2020-09-01 | Do not install setuptools 50.0. (#8212) | Patrick Cloke | 3 | -1/+6 | |
This is due to compatibility issues with old Python versions. | |||||
2020-09-01 | Move and rename `get_devices_with_keys_by_user` (#8204) | Richard van der Hoff | 6 | -49/+67 | |
* Move `get_devices_with_keys_by_user` to `EndToEndKeyWorkerStore` this seems a better fit for it. This commit simply moves the existing code: no other changes at all. * Rename `get_devices_with_keys_by_user` to better reflect what it does. * get_device_stream_token abstract method To avoid referencing fields which are declared in the derived classes, make `get_device_stream_token` abstract, and define that in the classes which define `_device_list_id_gen`. | |||||
2020-08-29 | Rename `get_e2e_device_keys` to better reflect its purpose (#8205) | Richard van der Hoff | 4 | -19/+14 | |
... and to show that it does something slightly different to `_get_e2e_device_keys_txn`. `include_all_devices` and `include_deleted_devices` were never used (and `include_deleted_devices` was broken, since that would cause `None`s in the result which were not handled in the loop below. Add some typing too. | |||||
2020-08-29 | Add a comment about _LimitedHostnameResolver | Richard van der Hoff | 1 | -0/+7 | |
2020-08-28 | Convert ReadWriteLock to async/await. (#8202) | Patrick Cloke | 4 | -33/+39 | |
2020-08-28 | Fix incorrect return signature | Andrew Morgan | 1 | -1/+1 | |
2020-08-28 | Fix `wait_for_stream_position` for multiple waiters. (#8196) | Erik Johnston | 3 | -5/+6 | |
This fixes a bug where having multiple callers waiting on the same stream and position will cause it to try and compare two deferreds, which fails (due to the sorted list having an entry of `Tuple[int, Deferred]`). | |||||
2020-08-28 | Convert `event_push_actions`, `registration`, and `roommember` datastores to ↵ | Patrick Cloke | 4 | -160/+169 | |
async (#8197) | |||||
2020-08-28 | Only return devices with keys from `/federation/v1/user/devices/` (#8198) | Richard van der Hoff | 2 | -3/+2 | |
There's not much point in returning all the others, and some people have a silly number of devices. | |||||
2020-08-28 | Convert state and stream stores and related code to async (#8194) | Patrick Cloke | 7 | -45/+51 | |
2020-08-28 | Ensure that the OpenID Connect remote ID is a string. (#8190) | Patrick Cloke | 3 | -2/+43 | |
2020-08-28 | Convert additional database code to async/await. (#8195) | Patrick Cloke | 11 | -175/+246 | |
2020-08-28 | Define StateMap as immutable and add a MutableStateMap type. (#8183) | Patrick Cloke | 8 | -32/+52 | |
2020-08-28 | Move and refactor LoginRestServlet helper methods (#8182) | Andrew Morgan | 3 | -55/+94 | |
This is split out from https://github.com/matrix-org/synapse/pull/7438, which had gotten rather large. `LoginRestServlet` has a couple helper methods, `login_submission_legacy_convert` and `login_id_thirdparty_from_phone`. They're primarily used for converting legacy user login submissions to "identifier" dicts ([see spec](https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-login)). Identifying information such as usernames or 3PID information used to be top-level in the login body. They're now supposed to be put inside an [identifier](https://matrix.org/docs/spec/client_server/r0.6.1#identifier-types) parameter instead. #7438's purpose is to allow using the new identifier parameter during User-Interactive Authentication, which is currently handled in AuthHandler. That's why I've moved these helper methods there. I also moved the refactoring of these method from #7438 as they're relevant. | |||||
2020-08-27 | Do not yield on awaitables in tests. (#8193) | Patrick Cloke | 15 | -131/+230 | |
2020-08-27 | Convert stats and related calls to async/await (#8192) | Patrick Cloke | 8 | -77/+78 | |
2020-08-27 | Convert simple_delete to async/await. (#8191) | Patrick Cloke | 5 | -37/+90 | |
2020-08-27 | Convert calls of async database methods to async (#8166) | Patrick Cloke | 14 | -84/+114 | |
2020-08-27 | simple_search_list_txn should return None, not 0. (#8187) | Patrick Cloke | 2 | -4/+4 | |
2020-08-27 | Fix missing _add_persisted_position (#8179) | Erik Johnston | 3 | -3/+52 | |
This was forgotten in #8164. | |||||
2020-08-27 | Convert additional database methods to async (select list, search, ↵ | Patrick Cloke | 8 | -84/+67 | |
insert_many, delete_*) (#8168) | |||||
2020-08-27 | Convert simple_update* and simple_select* to async (#8173) | Patrick Cloke | 19 | -133/+164 | |
2020-08-27 | Reduce run-times of tests by advancing the reactor less (#7757) | Andrew Morgan | 7 | -8/+9 | |
2020-08-27 | 1.19.1 v1.19.1 github/release-v1.19.1 release-v1.19.1 | Brendan Abolivier | 3 | -1/+13 | |
2020-08-27 | Update debian systemd service to use Type=notify (#8169) | Dexter Chua | 2 | -1/+7 | |
This ensures systemctl start matrix-synapse returns only after synapse is actually started, which is very useful for automated deployments. Fixes #5761 Signed-off-by: Dexter Chua <dec41@srcf.net> | |||||
2020-08-26 | Remove remaining is_guest argument uses from get_room_data calls (#8181) | Andrew Morgan | 2 | -10/+3 | |
#8174 removed the `is_guest` parameter from `get_room_data`, at the same time that #8157 was merged using it, colliding together to break unit tests on develop. This PR removes the `is_guest` parameter from the call in the broken test. Uses the same changelog as #8174. | |||||
2020-08-26 | Do not propagate typing notifications from shadow-banned users. (#8176) | Patrick Cloke | 6 | -24/+102 | |
2020-08-26 | Remove unused parameter from, and add safeguard in, get_room_data (#8174) | Andrew Morgan | 4 | -10/+14 | |
Small cleanup PR. * Removed the unused `is_guest` argument * Added a safeguard to a (currently) impossible code path, fixing static checking at the same time. | |||||
2020-08-26 | Add required Debian dependencies to allow docker builds on the arm platform ↵ | Christopher May-Townsend | 2 | -3/+11 | |
(#8144) Signed-off-by: Christopher May-Townsend <chris@maytownsend.co.uk> | |||||
2020-08-26 | Allow running mypy directly. (#8175) | Patrick Cloke | 3 | -51/+51 | |
2020-08-26 | Update the test federation client to handle streaming responses (#8130) | Richard van der Hoff | 2 | -8/+28 | |
Now that the server supports streaming back JSON responses, it would be nice to show the response as it is streamed, in the test tool. | |||||
2020-08-26 | Do not propagate profile changes of shadow-banned users into rooms. (#8157) | Patrick Cloke | 5 | -160/+291 | |
2020-08-26 | Make SlavedIdTracker.advance have same interface as MultiWriterIDGenerator ↵ | Erik Johnston | 12 | -15/+16 | |
(#8171) | |||||
2020-08-26 | Convert simple_select_one and simple_select_one_onecol to async (#8162) | Patrick Cloke | 25 | -113/+220 | |
2020-08-26 | Fix rate limiting unit tests. (#8167) | Patrick Cloke | 2 | -13/+15 | |
These were passing on the release-v1.19.1 branch but started failing once merged to develop. | |||||
2020-08-25 | Add functions to `MultiWriterIdGen` used by events stream (#8164) | Erik Johnston | 4 | -3/+145 | |
2020-08-25 | Do not allow send_nonmember_event to be called with shadow-banned users. (#8158) | Patrick Cloke | 2 | -5/+35 | |
2020-08-25 | Changelog fixes v1.19.1rc1 | Brendan Abolivier | 1 | -1/+1 | |
2020-08-25 | 1.19.1rc1 | Brendan Abolivier | 4 | -3/+11 | |
2020-08-25 | Make StreamIdGen `get_next` and `get_next_mult` async (#8161) | Erik Johnston | 14 | -49/+54 | |
This is mainly so that `StreamIdGenerator` and `MultiWriterIdGenerator` will have the same interface, allowing them to be used interchangeably. | |||||
2020-08-25 | Wording fixes to 'name' user admin api filter (#8163) | Andrew Morgan | 4 | -5/+7 | |
Some fixes to wording I noticed after merging #7377. | |||||
2020-08-25 | Fix missing double-backtick in RST document | Andrew Morgan | 1 | -1/+1 | |
2020-08-25 | Search in columns 'name' and 'displayname' in the admin users endpoint (#7377) | Manuel Stahl | 4 | -15/+27 | |
* Search in columns 'name' and 'displayname' in the admin users endpoint Signed-off-by: Manuel Stahl <manuel.stahl@awesome-technologies.de> | |||||
2020-08-24 | Add type hints for state. (#8140) | Patrick Cloke | 10 | -203/+420 | |
2020-08-24 | Stop shadow-banned users from sending non-member events. (#8142) | Patrick Cloke | 8 | -42/+155 | |
2020-08-24 | Allow capping a room's retention policy (#8104) | Brendan Abolivier | 6 | -107/+127 | |
2020-08-24 | Add healthcheck for default localhost 8008 port on /health endpoint. (#8147) | Christopher May-Townsend | 3 | -0/+34 | |
2020-08-24 | Fix flaky shadow-ban tests. (#8152) | Patrick Cloke | 2 | -1/+4 | |
2020-08-24 | Fix join ratelimiter breaking profile updates and idempotency (#8153) | Brendan Abolivier | 4 | -25/+119 | |
2020-08-24 | Do not apply ratelimiting on joins to appservices (#8139) | Will Hunt | 4 | -6/+119 | |
Add new method ratelimiter.can_requester_do_action and ensure that appservices are exempt from being ratelimited. Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> Co-authored-by: Erik Johnston <erik@matrix.org> | |||||
2020-08-24 | Don't fail /submit_token requests on incorrect session ID if ↵ | Brendan Abolivier | 5 | -6/+68 | |
request_token_inhibit_3pid_errors is turned on (#7991) * Don't raise session_id errors on submit_token if request_token_inhibit_3pid_errors is set * Changelog * Also wait some time before responding to /requestToken * Incorporate review * Update synapse/storage/databases/main/registration.py Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> * Incorporate review Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | |||||
2020-08-21 | Do not apply ratelimiting on joins to appservices (#8139) | Will Hunt | 4 | -6/+119 | |
Add new method ratelimiter.can_requester_do_action and ensure that appservices are exempt from being ratelimited. Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> Co-authored-by: Erik Johnston <erik@matrix.org> | |||||
2020-08-21 | Micro-optimisations to get_auth_chain_ids (#8132) | Richard van der Hoff | 2 | -23/+18 | |
2020-08-20 | Allow denying or shadow banning registrations via the spam checker (#8034) | Patrick Cloke | 14 | -18/+258 | |
2020-08-20 | Stop shadow-banned users from sending invites. (#8095) | Patrick Cloke | 7 | -31/+226 | |
2020-08-20 | Be more tolerant of membership events in unknown rooms (#8110) | Richard van der Hoff | 3 | -6/+28 | |
It turns out that not all out-of-band membership events are labelled as such, so we need to be more accepting here. | |||||
2020-08-20 | Improve the error code when trying to register using a name reserved for ↵ | Patrick Cloke | 2 | -1/+4 | |
guests. (#8135) | |||||
2020-08-20 | Use the JSON encoder without whitespace in more places. (#8124) | Patrick Cloke | 9 | -27/+21 | |
2020-08-20 | Add more types to synapse.storage.database. (#8127) | Patrick Cloke | 3 | -222/+367 | |
2020-08-20 | Ensure a group ID is valid before trying to get rooms for it. (#8129) | Patrick Cloke | 2 | -0/+5 | |
2020-08-20 | Do not assume calls to runInteraction return Deferreds. (#8133) | Patrick Cloke | 7 | -31/+41 | |
2020-08-19 | Close the database connection we create during startup (#8131) | Richard van der Hoff | 2 | -1/+11 | |
... otherwise it gets leaked. | |||||
2020-08-19 | Remove `ChainedIdGenerator`. (#8123) | Erik Johnston | 7 | -95/+26 | |
It's just a thin wrapper around two ID gens to make `get_current_token` and `get_next` return tuples. This can easily be replaced by calling the appropriate methods on the underlying ID gens directly. | |||||
2020-08-19 | Switch the JSON byte producer from a pull to a push producer. (#8116) | Patrick Cloke | 5 | -46/+53 | |
2020-08-19 | Updated docs: Added note about missing 308 redirect support. (#8120) | Ryan Cole | 2 | -0/+13 | |
* Updated docs: Added note about missing 308 redirect support. * Added changelog | |||||
2020-08-19 | Be stricter about JSON that is accepted by Synapse (#8106) | Patrick Cloke | 20 | -62/+85 | |
2020-08-19 | Convert runWithConnection to async. (#8121) | Patrick Cloke | 3 | -15/+15 | |
2020-08-19 | Remove the unused inlineCallbacks code-paths in the caching code (#8119) | Patrick Cloke | 3 | -52/+15 | |
2020-08-19 | Separate `get_current_token` into two. (#8113) | Erik Johnston | 6 | -20/+47 | |
The function is used for two purposes: 1) for subscribers of streams to get a token they can use to get further updates with, and 2) for replication to track position of the writers of the stream. For streams with a single writer the two scenarios produce the same result, however the situation becomes complicated for streams with multiple writers. The current `MultiWriterIdGenerator` does not correctly handle the first case (which is not an issue as its only used for the `caches` stream which nothing subscribes to outside of replication). | |||||
2020-08-18 | Convert events worker database to async/await. (#8071) | Patrick Cloke | 12 | -97/+106 | |
2020-08-18 | Add a link to the matrix-synapse-rest-password-provider. (#8111) | Patrick Cloke | 2 | -0/+2 | |
2020-08-18 | Fix the return type of send_nonmember_events. (#8112) | Patrick Cloke | 3 | -5/+17 | |
2020-08-18 | Remove : from allowed client_secret chars (#8101) | Andrew Morgan | 4 | -6/+16 | |
Closes: https://github.com/matrix-org/synapse/issues/6766 Equivalent Sydent PR: https://github.com/matrix-org/sydent/pull/309 I believe it's now time to remove the extra allowed `:` from `client_secret` parameters. | |||||
2020-08-18 | Rename changelog from bugfix to misc. | Patrick Cloke | 1 | -0/+0 | |
2020-08-18 | Iteratively encode JSON responses to avoid blocking the reactor. (#8013) | Patrick Cloke | 5 | -13/+94 | |
2020-08-18 | Return the previous stream token if a non-member event is a duplicate. (#8093) | Patrick Cloke | 2 | -10/+16 | |
2020-08-18 | Add resources.consent conditional dependency back (#8107) | Andrew Morgan | 2 | -20/+1 | |
Turns out that part of the codebase (synapse.config.server) checks for this key explicitly. Remove that check. | |||||
2020-08-17 | Convert some of the general database methods to async (#8100) | Patrick Cloke | 13 | -59/+69 | |
2020-08-17 | Use the default templates when a custom template file cannot be found (#8037) | Andrew Morgan | 15 | -290/+310 | |
Fixes https://github.com/matrix-org/synapse/issues/6583 | |||||
2020-08-17 | Changelog changes v1.19.0 github/release-v1.19.0 release-v1.19.0 | Olivier Wilkinson (reivilibre) | 1 | -5/+4 | |
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | |||||
2020-08-17 | 1.19.0 | Olivier Wilkinson (reivilibre) | 3 | -4/+10 | |
2020-08-17 | Convert stream database to async/await. (#8074) | Patrick Cloke | 11 | -227/+224 | |
2020-08-14 | Add a shadow-banned flag to users. (#8092) | Patrick Cloke | 12 | -12/+83 | |
2020-08-14 | Convert pusher databases to async/await. (#8075) | Patrick Cloke | 4 | -95/+90 | |
2020-08-14 | Convert receipts and events databases to async/await. (#8076) | Patrick Cloke | 4 | -82/+80 | |
2020-08-14 | Add type hints to synapse.handlers.room (#8090) | Erik Johnston | 3 | -39/+69 | |
2020-08-14 | Remove some unused database functions. (#8085) | Patrick Cloke | 7 | -244/+19 | |
2020-08-14 | Convert misc database code to async (#8087) | Patrick Cloke | 11 | -64/+39 | |
2020-08-13 | Remove a space at the start of a changelog entry. | Patrick Cloke | 1 | -1/+1 | |
2020-08-13 | More changelog tweaks v1.19.0rc1 | Olivier Wilkinson (reivilibre) | 1 | -4/+4 | |
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | |||||
2020-08-13 | More changelog tweaks | Olivier Wilkinson (reivilibre) | 1 | -4/+8 | |
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | |||||
2020-08-13 | Remove unwanted changelog line | Olivier Wilkinson (reivilibre) | 1 | -1/+0 | |
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> | |||||
2020-08-13 | 1.19.0rc1 | Olivier Wilkinson (reivilibre) | 72 | -71/+67 | |
2020-08-13 | Run `remove_push_actions_from_staging` in foreground (#8081) | Richard van der Hoff | 2 | -3/+2 | |
If we got an error persisting an event, we would try to remove the push actions asynchronously, which would lead to a 'Re-starting finished log context' warning. I don't think there's any need for this to be asynchronous. | |||||
2020-08-13 | Drop federation transmission queues during a significant remote outage. (#7864) | reivilibre | 2 | -0/+23 | |
* Empty federation transmission queues when we are backing off. Fixes #7828. Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> * Address feedback Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> * Reword newsfile | |||||
2020-08-13 | Fix unawaited coroutine error in tests. (#8072) | Patrick Cloke | 2 | -10/+21 | |
2020-08-12 | Convert the roommember database to async/await. (#8070) | Patrick Cloke | 5 | -242/+116 | |
2020-08-12 | Convert devices database to async/await. (#8069) | Patrick Cloke | 5 | -176/+220 | |
2020-08-12 | Add type hints to handlers.message and events.builder (#8067) | Erik Johnston | 7 | -41/+61 | |
2020-08-12 | Convert account data, device inbox, and censor events databases to ↵ | Patrick Cloke | 5 | -87/+99 | |
async/await (#8063) | |||||
2020-08-12 | Convert appservice, group server, profile and more databases to async (#8066) | Patrick Cloke | 9 | -116/ |