- Sep 04, 2019
-
-
Erik Johnston authored
Previously the stats were not being correctly populated.
-
- Aug 30, 2019
-
-
Andrew Morgan authored
Python will return a tuple whether there are parentheses around the returned values or not. I'm just sick of my editor complaining about this all over the place :)
-
- Aug 28, 2019
-
-
Jorik Schellekens authored
Template config files * Imagine a system composed entirely of x, y, z etc and the basic operations.. Wait George, why XOR? Why not just neq? George: Eh, I didn't think of that.. Co-Authored-By:
Erik Johnston <erik@matrix.org>
-
Amber Brown authored
-
- Aug 23, 2019
-
-
Half-Shot authored
-
- Aug 20, 2019
-
-
Richard van der Hoff authored
Get rid of the labyrinthine `recoverer_fn` code, and clean up the startup code (it seemed to be previously inexplicably split between `ApplicationServiceScheduler.start` and `_Recoverer.start`). Add some docstrings too.
-
Erik Johnston authored
-
Erik Johnston authored
-
- Aug 15, 2019
-
-
Erik Johnston authored
This refactors MatrixFederationAgent to move the SRV lookup into the endpoint code, this has two benefits: 1. Its easier to retry different host/ports in the same way as HostnameEndpoint. 2. We avoid SRV lookups if we have a free connection in the pool
-
Erik Johnston authored
If we have recently seen a valid well-known for a domain we want to retry on (non-final) errors a few times, to handle temporary blips in networking/etc.
-
- Aug 13, 2019
-
-
Erik Johnston authored
This gives a bit of a grace period where we can attempt to refetch a remote `well-known`, while still using the cached result if that fails. Hopefully this will make the well-known resolution a bit more torelant of failures, rather than it immediately treating failures as "no result" and caching that for an hour.
-
- Aug 07, 2019
-
-
Erik Johnston authored
-
- Aug 06, 2019
-
-
Erik Johnston authored
It costs both us and the remote server for us to fetch the well known for every single request we send, so we add a minimum cache period. This is set to 5m so that we still honour the basic premise of "refetch frequently".
-
- Aug 01, 2019
-
-
Brendan Abolivier authored
-
- Jul 31, 2019
-
-
Amber Brown authored
-
Erik Johnston authored
-
- Jul 30, 2019
-
-
Richard van der Hoff authored
The `expire_access_token` didn't do what it sounded like it should do. What it actually did was make Synapse enforce the 'time' caveat on macaroons used as access tokens, but since our access token macaroons never contained such a caveat, it was always a no-op. (The code to add 'time' caveats was removed back in v0.18.5, in #1656)
-
- Jul 29, 2019
-
-
Richard van der Hoff authored
-
Amber Brown authored
-
- Jul 26, 2019
-
-
Richard van der Hoff authored
-
- Jul 25, 2019
-
-
Richard van der Hoff authored
There was some inconsistent behaviour in the caching layer around how exceptions were handled - particularly synchronously-thrown ones. This seems to be most easily handled by pushing the creation of ObservableDeferreds down from CacheDescriptor to the Cache.
-
- Jul 24, 2019
-
-
Jorik Schellekens authored
* Fix servlet metric names Co-Authored-By:
Richard van der Hoff <1389908+richvdh@users.noreply.github.com> * Remove redundant check * Cover all return paths
-
- Jul 23, 2019
-
-
Erik Johnston authored
-
Amber Brown authored
-
- Jul 19, 2019
-
-
Richard van der Hoff authored
There's an awful lot of deferreds and dictionaries flying around here. The whole thing can be made much simpler and achieve the same effect.
-
- Jul 18, 2019
-
-
Amber Brown authored
-
Andrew Morgan authored
Fixes #5594 Forbid viewing relations on an event once it has been redacted.
-
- Jul 17, 2019
-
-
Richard van der Hoff authored
-
Richard van der Hoff authored
We can now use `_get_events_from_cache_or_db` rather than going right back to the database, which means that (a) we can benefit from caching, and (b) it opens the way forward to more extensive checks on the original event. We now always require the original event to exist before we will serve up a redaction.
-
- Jul 12, 2019
-
-
Richard van der Hoff authored
Record how long an access token is valid for, and raise a soft-logout once it expires.
-
Richard van der Hoff authored
It's useful to be able to tweak the homeserver config to be used for each test. This PR adds a mechanism to do so.
-
- Jul 11, 2019
-
-
Richard van der Hoff authored
First of all, let's get rid of `TOKEN_NOT_FOUND_HTTP_STATUS`. It was a hack we did at one point when it was possible to return either a 403 or a 401 if the creds were missing. We always return a 401 in these cases now (thankfully), so it's not needed. Let's also stop abusing `AuthError` for these cases. Honestly they have nothing that relates them to the other places that `AuthError` is used, other than the fact that they are loosely under the 'Auth' banner. It makes no sense for them to share exception classes. Instead, let's add a couple of new exception classes: `InvalidClientTokenError` and `MissingClientTokenError`, for the `M_UNKNOWN_TOKEN` and `M_MISSING_TOKEN` cases respectively - and an `InvalidClientCredentialsError` base class for the two of them.
-
- Jul 10, 2019
-
-
Richard van der Hoff authored
this is only used in one place, so it's clearer if we inline it and reduce the API surface. Also, fixes a buglet where we would create an access token even if we were about to block the user (we would never return the AT, so the user could never use it, but it was still created and added to the db.)
-
Richard van der Hoff authored
The 'token' param is no longer used anywhere except the tests, so let's kill that off too.
-
- Jul 09, 2019
-
-
Andrew Morgan authored
When asking for the relations of an event, include the original event in the response. This will mostly be used for efficiently showing edit history, but could be useful in other circumstances.
-
- Jul 08, 2019
-
-
Richard van der Hoff authored
Nothing uses this now, so we can remove the dead code, and clean up the API. Since we're changing the shape of the return value anyway, we take the opportunity to give the method a better name.
-
Brendan Abolivier authored
-
Brendan Abolivier authored
-
Richard van der Hoff authored
This is only used in tests, so...
-
- Jul 05, 2019
-
-
Andrew Morgan authored
Riot team would like some extra fields as part of m.replace, so here you go. Fixes: #5598
-