- 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
-
Richard van der Hoff authored
- Put the default window_size back to 1000ms (broken by #5181) - Make the `rc_federation` config actually do something - fix an off-by-one error in the 'concurrent' limit - Avoid creating an unused `_PerHostRatelimiter` object for every single incoming request
-
- Jul 04, 2019
-
-
Erik Johnston authored
-
- Jul 03, 2019
-
-
Amber Brown authored
-
- Jul 02, 2019
-
-
Amber Brown authored
-
Erik Johnston authored
-
- Jun 29, 2019
-
-
Amber Brown authored
-
- Jun 28, 2019
-
-
Amber Brown authored
-
- Jun 24, 2019
-
-
Brendan Abolivier authored
-
Richard van der Hoff authored
* Pull config_dir_path and data_dir_path calculation out of read_config_files * Pass config_dir_path and data_dir_path into read_config
-
- Jun 20, 2019
-
-
Amber Brown authored
-
- Jun 19, 2019
-
-
Erik Johnston authored
-