summary refs log tree commit diff
path: root/tests (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-12-30Move AccountValidityConfig to its own config fileAndrew Morgan6-251/+224
2020-12-30Only expose nginx listening port (8008). Add more worker configsAndrew Morgan2-11/+60
2020-12-15Get Synapse main and worker process startup working!Andrew Morgan9-186/+394
2020-12-14major wipAndrew Morgan7-3/+243
2020-12-11Improve tests for structured logging. (#8916)Patrick Cloke2-27/+47
2020-12-11Add number of local devices to Room Details Admin API (#8886)Dirk Klimpel6-27/+138
2020-12-11Don't ratelimit autojoining of rooms (#8921)Erik Johnston4-11/+34
Fixes #8866
2020-12-10Don't publish `latest` docker image until all archs are built (#8909)Richard van der Hoff2-3/+5
2020-12-10Fix deadlock on SIGHUP (#8918)Erik Johnston2-1/+6
Fixes #8892
2020-12-10Refactor `SsoHandler.get_mxid_from_sso` (#8900)Richard van der Hoff3-28/+51
* Factor out _call_attribute_mapper and _register_mapped_user This is mostly an attempt to simplify `get_mxid_from_sso`. * Move mapping_lock down into SsoHandler.
2020-12-10Fix buglet in DirectRenderJsonResource (#8897)Richard van der Hoff2-3/+6
this was using `canonical_json` without setting it, so when you used it as a standalone class, you would get exceptions.
2020-12-10Deprecate Shutdown Room and Purge Room Admin API (#8829)Dirk Klimpel5-11/+63
Deprecate both APIs in favour of the Delete Room API. Related: #8663 and #8810
2020-12-09Default to blacklisting reserved IP ranges and add a whitelist. (#8870)Patrick Cloke10-89/+172
This defaults `ip_range_blacklist` to reserved IP ranges and also adds an `ip_range_whitelist` setting to override it.
2020-12-09Skip the SAML tests if xmlsec1 isn't available. (#8905)Patrick Cloke2-0/+24
2020-12-09Combine related media admin API docs (#8839)Dirk Klimpel3-50/+87
Related: #8810 Also a few small improvements. Signed-off-by: Dirk Klimpel dirk@klimpel.org
2020-12-09Pin the docker version for multiarch buildsRichard van der Hoff2-3/+6
It seems that letting CircleCI use its default docker version (17.09.0-ce, apparently) did not interact well with multiarch builds: in particular, we saw weird effects where running an amd64 build at the same time as an arm64 build caused the arm64 builds to fail with: Error while loading /usr/sbin/dpkg-deb: No such file or directory
2020-12-09Add 'xmlsec1' to dependency list github/release-v1.24.0 release-v1.24.0Erik Johnston1-1/+2
2020-12-09 1.23.1 v1.23.1 github/release-v1.23.1 release-v1.23.1Erik Johnston5-3/+59
2020-12-09 1.24.0 v1.24.0Erik Johnston4-2/+53
2020-12-09Fix installing pysaml2 on Python 3.5. (#8898)Patrick Cloke2-1/+6
This pins pysaml2 to < 6.4.0 on Python 3.5, as the last known working version.
2020-12-09Consistently use room_id from federation request body (#8776)Richard van der Hoff5-54/+49
* Consistently use room_id from federation request body Some federation APIs have a redundant `room_id` path param (see https://github.com/matrix-org/matrix-doc/issues/2330). We should make sure we consistently use either the path param or the body param, and the body param is easier. * Kill off some references to "context" Once upon a time, "rooms" were known as "contexts". I think this kills of the last references to "contexts".
2020-12-08Add X-Robots-Tag header to stop crawlers from indexing media (#8887)Aaron Raimist3-0/+19
Fixes / related to: https://github.com/matrix-org/synapse/issues/6533 This should do essentially the same thing as a robots.txt file telling robots to not index the media repo. https://developers.google.com/search/reference/robots_meta_tag Signed-off-by: Aaron Raimist <aaron@raim.ist>
2020-12-08Fix installing pysaml2 on Python 3.5. (#8898)Patrick Cloke2-1/+6
This pins pysaml2 to < 6.4.0 on Python 3.5, as the last known working version.
2020-12-08Better formatting for config errors from modules (#8874)Richard van der Hoff13-37/+160
The idea is that the parse_config method of extension modules can raise either a ConfigError or a JsonValidationError, and it will be magically turned into a legible error message. There's a few components to it: * Separating the "path" and the "message" parts of a ConfigError, so that we can fiddle with the path bit to turn it into an absolute path. * Generally improving the way ConfigErrors get printed. * Passing in the config path to load_module so that it can wrap any exceptions that get caught appropriately.
2020-12-08Simplify the flow for SSO UIA (#8881)Richard van der Hoff7-40/+144
* SsoHandler: remove inheritance from BaseHandler * Simplify the flow for SSO UIA We don't need to do all the magic for mapping users when we are doing UIA, so let's factor that out.
2020-12-08Clarify config template comments (#8891)Richard van der Hoff4-16/+9
2020-12-07Call set_avatar_url with target_user, not user_id (#8872)Will Hunt3-3/+9
* Call set_avatar_url with target_user, not user_id Fixes https://github.com/matrix-org/synapse/issues/8871 * Create 8872.bugfix * Update synapse/rest/admin/users.py Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> * Testing * Update changelog.d/8872.bugfix Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
2020-12-07Do not raise a 500 exception when previewing empty media. (#8883)Patrick Cloke3-12/+22
2020-12-07Add type hints for HTTP and email pushers. (#8880)Patrick Cloke8-101/+168
2020-12-07Add type hints to the push mailer module. (#8882)Patrick Cloke3-40/+85
2020-12-04Add authentication to replication endpoints. (#8853)Patrick Cloke7-15/+184
Authentication is done by checking a shared secret provided in the Synapse configuration file.
2020-12-04Pass room_id to get_auth_chain_difference (#8879)Erik Johnston6-17/+33
This is so that we can choose which algorithm to use based on the room ID.
2020-12-04Add additional validation to pusher URLs. (#8865)Patrick Cloke6-30/+106
Pusher URLs now must end in `/_matrix/push/v1/notify` per the specification.
2020-12-04Do not 500 if the content-length is not provided when uploading media. (#8862)Patrick Cloke2-1/+2
Instead return the proper 400 error.
2020-12-04Minor update to CHANGES. v1.24.0rc2Patrick Cloke1-1/