- Dec 15, 2020
-
-
Richard van der Hoff authored
-
Richard van der Hoff authored
This was never used, so let's get rid of it.
-
Richard van der Hoff authored
The two are equivalent, but really we want to check the HTTP result that got returned to the channel, not the code that the Request object *intended* to return to the channel.
-
- Dec 09, 2020
-
-
Patrick Cloke authored
This defaults `ip_range_blacklist` to reserved IP ranges and also adds an `ip_range_whitelist` setting to override it.
-
- Dec 04, 2020
-
-
Patrick Cloke authored
Authentication is done by checking a shared secret provided in the Synapse configuration file.
-
Patrick Cloke authored
Pusher URLs now must end in `/_matrix/push/v1/notify` per the specification.
-
- Dec 02, 2020
-
-
Richard van der Hoff authored
A few test cases were relying on being able to mount non-client servlets on the test resource. it's better to give them their own Resources.
-
Patrick Cloke authored
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).
-
- Nov 30, 2020
-
-
Jonathan de Jong authored
Changes `@cache_in_self` to use underscore-prefixed attributes.
-
- Nov 16, 2020
-
-
Richard van der Hoff authored
-
Richard van der Hoff authored
remove the stubbing out of `request.process`, so that `requestReceived` also renders the request via the appropriate resource. Replace render() with a stub for now.
-
Richard van der Hoff authored
The root resource isn't necessarily a JsonResource, so rename this method accordingly, and update a couple of test classes to use the method rather than directly manipulating self.resource.
-
- Nov 15, 2020
-
-
Richard van der Hoff authored
Where we want to render a request against a specific Resource, call the global make_request() function rather than the one in HomeserverTestCase, allowing us to pass in an appropriate `Site`.
-
- Oct 30, 2020
-
-
Erik Johnston authored
Fixes #6755
-
- Oct 29, 2020
-
-
Erik Johnston authored
We do it this way round so that only the "owner" can delete the access token (i.e. `/logout/all` by the "owner" also deletes that token, but `/logout/all` by the "target user" doesn't). A future PR will add an API for creating such a token. When the target user and authenticated entity are different the `Processed request` log line will be logged with a: `{@admin:server as @bob:server} ...`. I'm not convinced by that format (especially since it adds spaces in there, making it harder to use `cut -d ' '` to chop off the start of log lines). Suggestions welcome.
-
Erik Johnston authored
-
- Oct 27, 2020
-
-
Dan Callahan authored
This allows trailing commas in multi-line arg lists. Minor, but we might as well keep our formatting current with regard to our minimum supported Python version. Signed-off-by:
Dan Callahan <danc@element.io>
-
- Oct 15, 2020
-
-
Jonathan de Jong authored
This implements a more standard API for instantiating a homeserver and moves some of the dependency injection into the test suite. More concretely this stops using `setattr` on all `kwargs` passed to `HomeServer`.
-
- Oct 14, 2020
-
-
Erik Johnston authored
These are tests for #8439
-
- Oct 13, 2020
-
-
Richard van der Hoff authored
Update `EventCreationHandler.create_event` to accept an auth_events param, and use it in `_locally_reject_invite` instead of reinventing the wheel.
-
- Oct 09, 2020
-
-
Patrick Cloke authored
All handlers now available via get_*_handler() methods on the HomeServer.
-
- Oct 02, 2020
-
-
Erik Johnston authored
-
- Sep 24, 2020
-
-
Erik Johnston authored
The idea is to remove some of the places we pass around `int`, where it can represent one of two things: 1. the position of an event in the stream; or 2. a token that partitions the stream, used as part of the stream tokens. The valid operations are then: 1. did a position happen before or after a token; 2. get all events that happened before or after a token; and 3. get all events between two tokens. (Note that we don't want to allow other operations as we want to change the tokens to be vector clocks rather than simple ints)
-
- Sep 18, 2020
-
-
Patrick Cloke authored
This converts calls like super(Foo, self) -> super(). Generated with: sed -i "" -Ee 's/super\([^\(]+\)/super()/g' **/*.py
-
- Sep 08, 2020
-
-
Patrick Cloke authored
-
- Sep 02, 2020
-
-
Brendan Abolivier authored
-
- Aug 26, 2020
-
-
Patrick Cloke authored
-
- Aug 05, 2020
-
-
Erik Johnston authored
-
- Jul 30, 2020
-
-
Patrick Cloke authored
-
- Jul 27, 2020
-
-
Patrick Cloke authored
-
- Jul 22, 2020
-
-
Patrick Cloke authored
-
- Jul 16, 2020
-
-
Erik Johnston authored
This reuses the same scheme as federation sender sharding
-
- Jul 15, 2020
-
-
Erik Johnston authored
* Fix client reader sharding tests * Newsfile * Fix typing * Update changelog.d/7853.misc Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com> * Move mocking of http_client to tests Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com>
-
- Jul 13, 2020
-
-
Patrick Cloke authored
-
- Jul 10, 2020
-
-
Erik Johnston authored
-
- Jul 01, 2020
-
-
Brendan Abolivier authored
-
- Jun 15, 2020
-
-
Patrick Cloke authored
-
- Jun 12, 2020
-
-
Brendan Abolivier authored
-
Brendan Abolivier authored
-
- Jun 10, 2020
-
-
Brendan Abolivier authored
-