Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | `N + 3`: Read from column `full_user_id` rather than `user_id` of tables ↵ | Shay | 2023-06-02 | 1 | -20/+8 |
| | | | | `profiles` and `user_filters` (#15649) | ||||
* | Add column `full_user_id` to tables `profiles` and `user_filters`. (#15458) | Shay | 2023-04-26 | 1 | -14/+12 |
| | |||||
* | Add missing type hints to tests.handlers. (#14680) | Patrick Cloke | 2022-12-16 | 1 | -2/+2 |
| | | | And do not allow untyped defs in tests.handlers. | ||||
* | fix broken avatar checks when server_name contains a port (#13927) | Ashish Kumar | 2022-10-26 | 1 | -0/+49 |
| | | | | | | Fixes check_avatar_size_and_mime_type() to successfully update avatars on homeservers running on non-default ports which it would mistakenly treat as remote homeserver while validating the avatar's size and mime type. Signed-off-by: Ashish Kumar ashfame@users.noreply.github.com | ||||
* | Remove redundant `get_success` calls in test code (#12346) | Richard van der Hoff | 2022-04-01 | 1 | -1/+1 |
| | | | There are a bunch of places we call get_success on an immediate value, which is unnecessary. Let's rip them out, and remove the redundant functionality in get_success and friends. | ||||
* | Always allow the empty string as an avatar_url. (#12261) | David Robertson | 2022-03-25 | 1 | -0/+6 |
| | | | | | Hopefully this fixes #12257. Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> | ||||
* | Add type hints to some tests/handlers files. (#12224) | Dirk Klimpel | 2022-03-15 | 1 | -19/+24 |
| | |||||
* | Replace assertEquals and friends with non-deprecated versions. (#12092) | Patrick Cloke | 2022-02-28 | 1 | -10/+10 |
| | |||||
* | Remove `HomeServer.get_datastore()` (#12031) | Richard van der Hoff | 2022-02-23 | 1 | -2/+2 |
| | | | | | | | The presence of this method was confusing, and mostly present for backwards compatibility. Let's get rid of it. Part of #11733 | ||||
* | Configurable limits on avatars (#11846) | Brendan Abolivier | 2022-01-28 | 1 | -2/+92 |
| | | | | | | Only allow files which file size and content types match configured limits to be set as avatar. Most of the inspiration from the non-test code comes from matrix-org/synapse-dinsic#19 | ||||
* | Use direct references for configuration variables (part 7). (#10959) | Patrick Cloke | 2021-10-04 | 1 | -2/+2 |
| | |||||
* | Always add local users to the user directory (#10796) | David Robertson | 2021-09-21 | 1 | -2/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | It's a simplification, but one that'll help make the user directory logic easier to follow with the other changes upcoming. It's not strictly required for those changes, but this will help simplify the resulting logic that listens for `m.room.member` events and generally make the logic easier to follow. This means the config option `search_all_users` ends up controlling the search query only, and not the data we store. The cost of doing so is an extra row in the `user_directory` and `user_directory_search` tables for each local user which - belongs to no public rooms - belongs to no private rooms of size ≥ 2 I think the cost of this will be marginal (since they'll already have entries in `users` and `profiles` anyway). As a small upside, a homeserver whose directory was built with this change can toggle `search_all_users` without having to rebuild their directory. Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | ||||
* | [pyupgrade] `tests/` (#10347) | Jonathan de Jong | 2021-07-13 | 1 | -1/+1 |
| | |||||
* | update black to 21.6b0 (#10197) | Marcus | 2021-06-17 | 1 | -1/+1 |
| | | | | | Reformat all files with the new version. Signed-off-by: Marcus Hoffmann <bubu@bubu1.eu> | ||||
* | Remove redundant "coding: utf-8" lines (#9786) | Jonathan de Jong | 2021-04-14 | 1 | -1/+0 |
| | | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>` | ||||
* | Use mock from the stdlib. (#9772) | Patrick Cloke | 2021-04-09 | 1 | -1/+1 |
| | |||||
* | Add configs to make profile data more private (#9203) | AndrewFerr | 2021-02-19 | 1 | -1/+5 |
| | | | | | | | Add off-by-default configuration settings to: - disable putting an invitee's profile info in invite events - disable profile lookup via federation Signed-off-by: Andrew Ferrazzutti <fair@miscworks.net> | ||||
* | Update black, and run auto formatting over the codebase (#9381) | Eric Eastwood | 2021-02-16 | 1 | -1/+3 |
| | | | | | | | - Update black version to the latest - Run black auto formatting over the codebase - Run autoformatting according to [`docs/code_style.md `](https://github.com/matrix-org/synapse/blob/80d6dc9783aa80886a133756028984dbf8920168/docs/code_style.md) - Update `code_style.md` docs around installing black to use the correct version | ||||
* | Convert some test cases to use HomeserverTestCase. (#9377) | Patrick Cloke | 2021-02-11 | 1 | -82/+39 |
| | | | | This has the side-effect of being able to remove use of `inlineCallbacks` in the test-cases for cleaner tracebacks. | ||||
* | Remove user's avatar URL and displayname when deactivated. (#8932) | Dirk Klimpel | 2021-01-12 | 1 | -0/+30 |
| | | | This only applies if the user's data is to be erased. | ||||
* | Remove redundant mocking | Richard van der Hoff | 2020-12-02 | 1 | -2/+0 |
| | |||||
* | Apply an IP range blacklist to push and key revocation requests. (#8821) | Patrick Cloke | 2020-12-02 | 1 | -1/+1 |
| | | | | | | | | | | | | Replaces the `federation_ip_range_blacklist` configuration setting with an `ip_range_blacklist` setting with wider scope. It now applies to: * Federation * Identity servers * Push notifications * Checking key validitity for third-party invite events The old `federation_ip_range_blacklist` setting is still honored if present, but with reduced scope (it only applies to federation and identity servers). | ||||
* | Remove the deprecated Handlers object (#8494) | Patrick Cloke | 2020-10-09 | 1 | -7/+0 |
| | | | All handlers now available via get_*_handler() methods on the HomeServer. | ||||
* | Stop sub-classing object (#8249) | Patrick Cloke | 2020-09-04 | 1 | -1/+1 |
| | |||||
* | Convert simple_select_one and simple_select_one_onecol to async (#8162) | Patrick Cloke | 2020-08-26 | 1 | -12/+44 |
| | |||||
* | Convert some of the general database methods to async (#8100) | Patrick Cloke | 2020-08-17 | 1 | -2/+2 |
| | |||||
* | Convert federation client to async/await. (#7975) | Patrick Cloke | 2020-07-30 | 1 | -1/+2 |
| | |||||
* | Convert _base, profile, and _receipts handlers to async/await (#7860) | Patrick Cloke | 2020-07-17 | 1 | -6/+11 |
| | |||||
* | Performance improvements and refactor of Ratelimiter (#7595) | Andrew Morgan | 2020-06-05 | 1 | -5/+1 |
| | | | | | | | | | | While working on https://github.com/matrix-org/synapse/issues/5665 I found myself digging into the `Ratelimiter` class and seeing that it was both: * Rather undocumented, and * causing a *lot* of config checks This PR attempts to refactor and comment the `Ratelimiter` class, as well as encourage config file accesses to only be done at instantiation. Best to be reviewed commit-by-commit. | ||||
* | async/await is_server_admin (#7363) | Andrew Morgan | 2020-05-01 | 1 | -21/+39 |
| | |||||
* | Add options to prevent users from changing their profile. (#7096) | Dirk Klimpel | 2020-03-27 | 1 | -1/+64 |
| | |||||
* | Revert "Add options to disable setting profile info for prevent changes. ↵ | Richard van der Hoff | 2020-03-17 | 1 | -32/+1 |
| | | | | | | | (#7053)" This reverts commit 54dd28621b070ca67de9f773fe9a89e1f4dc19da, reversing changes made to 6640460d054e8f4444046a34bdf638921b31c01e. | ||||
* | updates after review | dklimpel | 2020-03-09 | 1 | -3/+3 |
| | |||||
* | fix tests | dklimpel | 2020-03-09 | 1 | -2/+2 |
| | |||||
* | add tests | dklimpel | 2020-03-09 | 1 | -3/+3 |
| | |||||
* | Add options to disable setting profile info for prevent changes. | dklimpel | 2020-03-08 | 1 | -1/+32 |
| | |||||
* | Add rate-limiting on registration (#4735) | Brendan Abolivier | 2019-03-05 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rate-limiting for registration * Add unit test for registration rate limiting * Add config parameters for rate limiting on auth endpoints * Doc * Fix doc of rate limiting function Co-Authored-By: babolivier <contact@brendanabolivier.com> * Incorporate review * Fix config parsing * Fix linting errors * Set default config for auth rate limiting * Fix tests * Add changelog * Advance reactor instead of mocked clock * Move parameters to registration specific config and give them more sensible default values * Remove unused config options * Don't mock the rate limiter un MAU tests * Rename _register_with_store into register_with_store * Make CI happy * Remove unused import * Update sample config * Fix ratelimiting test for py2 * Add non-guest test | ||||
* | Merge branch 'develop' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2018-08-17 | 1 | -16/+10 |
|\ | | | | | | | erikj/split_profiles | ||||
| * | Run tests under PostgreSQL (#3423) | Amber Brown | 2018-08-13 | 1 | -0/+1 |
| | | |||||
| * | Run black. | black | 2018-08-10 | 1 | -16/+9 |
| | | |||||
* | | Split ProfileHandler into master and worker | Erik Johnston | 2018-08-17 | 1 | -2/+2 |
|/ | |||||
* | run isort | Amber Brown | 2018-07-09 | 1 | -3/+3 |
| | |||||
* | s/replication_client/federation_client/ | Erik Johnston | 2018-03-13 | 1 | -1/+1 |
| | |||||
* | s/replication_server/federation_server | Erik Johnston | 2018-03-13 | 1 | -1/+1 |
| | |||||
* | Fix tests | Erik Johnston | 2018-03-13 | 1 | -1/+2 |
| | |||||
* | Fix tests | Erik Johnston | 2018-03-13 | 1 | -5/+4 |
| | |||||
* | Split out profile handler to fix tests | Erik Johnston | 2017-08-25 | 1 | -3/+1 |
| | |||||
* | fix tests | Richard van der Hoff | 2017-03-23 | 1 | -1/+2 |
| | |||||
* | Implement device key caching over federation | Erik Johnston | 2017-01-26 | 1 | -0/+1 |
| | |||||
* | Add `create_requester` function | Richard van der Hoff | 2016-07-26 | 1 | -4/+6 |
| | | | | | Wrap the `Requester` constructor with a function which provides sensible defaults, and use it throughout | ||||
* | Pass whole requester to ratelimiting | Daniel Wagner-Hall | 2016-03-03 | 1 | -4/+12 |
| | | | | This will enable more detailed decisions | ||||
* | Fix flake8 warnings for tests | Mark Haines | 2016-02-19 | 1 | -3/+6 |
| | |||||
* | Remove old tests. | Erik Johnston | 2016-02-18 | 1 | -3/+0 |
| | |||||
* | copyrights | Matthew Hodgson | 2016-01-07 | 1 | -1/+1 |
| | |||||
* | Factor out some of the common homeserver setup code into a | Mark Haines | 2015-02-11 | 1 | -19/+10 |
| | | | | setup_test_homeserver function in utils. | ||||
* | Replace hs.parse_userid with UserID.from_string | Mark Haines | 2015-01-23 | 1 | -4/+4 |
| | |||||
* | Mock ratelimiter to make tests pass. | Kegan Dougal | 2014-12-19 | 1 | -1/+8 |
| | |||||
* | Fix profile tests | Erik Johnston | 2014-11-05 | 1 | -1/+5 |
| | |||||
* | Merge branch 'test-sqlite-memory' of github.com:matrix-org/synapse into develop | Erik Johnston | 2014-09-18 | 1 | -43/+24 |
|\ | | | | | | | | | Conflicts: tests/handlers/test_profile.py | ||||
| * | Merge remote-tracking branch 'origin/develop' into test-sqlite-memory | Paul "LeoNerd" Evans | 2014-09-15 | 1 | -5/+1 |
| |\ | |||||
| * | | Need to prepare() the SQLiteMemoryDbPool before passing it to HomeServer ↵ | Paul "LeoNerd" Evans | 2014-09-11 | 1 | -3/+4 |
| | | | | | | | | | | | | constructor, as DataStore's constructor will want it ready | ||||
| * | | Test ProfileHandler against the real datastore layer using SQLite :memory: | Paul "LeoNerd" Evans | 2014-09-10 | 1 | -25/+25 |
| | | | |||||
* | | | SYN-40: When a user updates their displayname or avatar update all their ↵ | Erik Johnston | 2014-09-17 | 1 | -0/+21 |
| |/ |/| | | | | | join events for all the rooms they are currently in. | ||||
* | | Have all unit tests import from our own subclass of trial's unittest ↵ | Paul "LeoNerd" Evans | 2014-09-12 | 1 | -5/+1 |
|/ | | | | TestCase; set up logging in ONE PLACE ONLY | ||||
* | fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org ↵ | Matthew Hodgson | 2014-09-03 | 1 | -1/+1 |
| | | | | hasn't been incorporated in time for launch. | ||||
* | Removed http_server from HomeServer. Updated unit tests to use either ↵ | Kegan Dougal | 2014-08-14 | 1 | -2/+2 |
| | | | | resource_for_federation or resource_for_client depending on what is being tested. | ||||
* | Use new Federation Query API to implement HS->HS fetching of remote users' ↵ | Paul "LeoNerd" Evans | 2014-08-13 | 1 | -8/+27 |
| | | | | profile information instead of (ab)using the client-side REST API | ||||
* | add in copyrights to everything, not just the synapse subdir, and add a ↵ | Matthew Hodgson | 2014-08-13 | 1 | -0/+14 |
| | | | | copyrighter.pl whilst we're at it | ||||
* | Reference Matrix Home Server | matrix.org | 2014-08-12 | 1 | -0/+112 |