- Oct 21, 2021
-
-
Andrew Morgan authored
-
Patrick Cloke authored
And require type hints for this module.
-
Richard van der Hoff authored
relative links don't work when it's on dockerhub.
-
Dirk Klimpel authored
Fix setting a user's external_id via the admin API returns 500 and deletes users existing external mappings if that external ID is already mapped (#11051) Fixes #10846
-
- Oct 20, 2021
-
-
Richard van der Hoff authored
It's been possible to configure a key inline in the homeserver.yaml since 13bc1e07. Update `sign_json` to work with this.
-
Robert Edström authored
Signed-off-by:
Robert Edström <github@legogris.se>
-
Richard van der Hoff authored
Remove some redundant code, and generally simplify.
-
Aaron R authored
-
Sean Quah authored
-
Travis Ralston authored
Co-authored-by:
Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
-
Brendan Abolivier authored
* Mention callbacks introduced in v1.37.0 According to the documentation introduced in https://github.com/matrix-org/synapse/pull/10062 * Mention callbacks introduced in v1.39.0 According to https://github.com/matrix-org/synapse/pull/10386 and https://github.com/matrix-org/synapse/pull/9884 * Mention callbacks introduced in v1.42.0 According to https://github.com/matrix-org/synapse/pull/10524 * Mention callbacks introduced in v1.44.0 and v1.45.0 As per https://github.com/matrix-org/synapse/pull/10898, https://github.com/matrix-org/synapse/pull/10910 and https://github.com/matrix-org/synapse/pull/10894 * Mention callbacks introduced in v1.46.0 According to https://github.com/matrix-org/synapse/pull/10548
-
Sean Quah authored
-
- Oct 19, 2021
-
-
Patrick Cloke authored
Updates the event rows returned from the database to be attrs classes instead of dictionaries.
-
Andrew Morgan authored
-
David Robertson authored
-
David Robertson authored
-
David Robertson authored
-
Dan Callahan authored
Signed-off-by:
Dan Callahan <danc@element.io>
-
Richard van der Hoff authored
This is just a lift-and-shift, because it fits more naturally here. We do rename it to `process_remote_join` at the same time though.
-
Richard van der Hoff authored
... to `_auth_and_persist_outliers`, since that reflects its purpose better.
-
Richard van der Hoff authored
If we find ourselves dealing with rejected events, we proably want to know about it. Let's include it in the stringification of the event so that it gets logged.
-
- Oct 18, 2021
-
-
Patrick Cloke authored
* Convert UserPresenceState to attrs. * Remove args/kwargs from error classes and explicitly pass msg/errorcode.
-
Richard van der Hoff authored
Currently, when we receive an event whose auth_events differ from those we expect, we state-resolve between the two state sets, and check that the event passes auth based on the resolved state. This means that it's possible for us to accept events which don't pass auth at their declared auth_events (or where the auth events themselves were rejected), leading to problems down the line like #10083. This change means we will: * ignore any events where we cannot find the auth events * reject any events whose auth events were rejected * reject any events which do not pass auth at their declared auth_events. Together with a whole raft of previous work, this is a partial fix to #9595. Fixes #6643. Based on #11009.
-
Richard van der Hoff authored
This fixes a bug where we would accept an event whose `auth_events` include rejected events, if the rejected event was shadowed by another `auth_event` with same `(type, state_key)`. The approach is to pass a list of auth events into `check_auth_rules_for_event` instead of a dict, which of course means updating the call sites. This is an extension of #10956.
-
Brendan Abolivier authored
Document Synapse's behaviour when multiple modules register the same callback/web resource/etc. Co-authored-by:
reivilibre <oliverw@matrix.org>
-
Richard van der Hoff authored
Make sure that we correctly handle rooms where we do not yet have a `min_depth`, and also add some comments and logging.
-
Hillery Shay authored
Fix broken export-data admin command and add a test for it to CI
-
David Robertson authored
-
- Oct 15, 2021
-
-
David Robertson authored
Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com>
-
Patrick Cloke authored
-
Sean Quah authored
Instead of triggering `__exit__` manually on the replication handler's logging context, use it as a context manager so that there is an `__enter__` call to balance the `__exit__`.
-
Dirk Klimpel authored
Co-authored-by:
Brendan Abolivier <babolivier@matrix.org>
-
- Oct 14, 2021
-
-
Eric Eastwood authored
Found while working on the Gitter backfill script and noticed it only happened after we sent 7 batches, https://gitlab.com/gitterHQ/webapp/-/merge_requests/2229#note_665906390 When there are more than 5 backward extremities for a given depth, backfill will throw an error because we sliced the extremity list to 5 but then try to iterate over the full list. This causes us to look for state that we never fetched and we get a `KeyError`. Before when calling `/messages` when there are more than 5 backward extremities: ``` Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/synapse/http/server.py", line 258, in _async_render_wrapper callback_return = await self._async_render(request) File "/usr/local/lib/python3.8/site-packages/synapse/http/server.py", line 446, in _async_render callback_return = await raw_callback_return File "/usr/local/lib/python3.8/site-packages/synapse/rest/client/room.py", line 580, in on_GET msgs = await self.pagination_handler.get_messages( File "/usr/local/lib/python3.8/site-packages/synapse/handlers/pagination.py", line 396, in get_messages await self.hs.get_federation_handler().maybe_backfill( File "/usr/local/lib/python3.8/site-packages/synapse/handlers/federation.py", line 133, in maybe_backfill return await self._maybe_backfill_inner(room_id, current_depth, limit) File "/usr/local/lib/python3.8/site-packages/synapse/handlers/federation.py", line 386, in _maybe_backfill_inner likely_extremeties_domains = get_domains_from_state(states[e_id]) KeyError: '$zpFflMEBtZdgcMQWTakaVItTLMjLFdKcRWUPHbbSZJl' ```
-
Patrick Cloke authored
There's no point in trying more than once since it is guaranteed to continually fail.
-
Patrick Cloke authored
This follows similar logic to BeautifulSoup where we attempt different character encodings until we find one which works.
-
Patrick Cloke authored
-
reivilibre authored
Add a test for a workaround concerning the behaviour of third-party rule modules and `SynapseError`s. (#11071)
-