- Jan 13, 2022
-
-
reivilibre authored
Fix a bug introduced in Synapse v1.50.0rc1 whereby outbound federation could fail because too many EDUs were produced for device updates. (#11730) Co-authored-by:
David Robertson <davidr@element.io>
-
- Jan 12, 2022
-
-
reivilibre authored
Fix a bug introduced in Synapse v1.0.0 whereby device list updates would not be sent to remote homeservers if there were too many to send at once. (#11729) Co-authored-by:
Brendan Abolivier <babolivier@matrix.org>
-
David Robertson authored
* Deal with mypy errors w/ type-hinted pynacl 1.5.0 Fixes #11644. I really don't like that we're monkey patching pynacl SignedKey instances with alg and version objects. But I'm too scared to make the changes necessary right now. (Ideally I would replace `signedjson.types.SingingKey` with a runtime class which wraps or inherits from `nacl.signing.SigningKey`.) C.f. https://github.com/matrix-org/python-signedjson/issues/16
-
haslersn authored
Signed-off-by:
Sebastian Hasler <sebastian.hasler@stuvus.uni-stuttgart.de>
-
- Jan 06, 2022
-
-
reivilibre authored
Work around Mjolnir compatibility issue by adding an import for `glob_to_regex` in `synapse.util`, where it moved from. (#11696)
- Jan 05, 2022
-
-
Patrick Cloke authored
-
Patrick Cloke authored
-
Olivier Wilkinson (reivilibre) authored
-
Richard van der Hoff authored
* `_auth_and_persist_outliers`: mark persisted events as outliers Mark any events that get persisted via `_auth_and_persist_outliers` as, well, outliers. Currently this will be a no-op as everything will already be flagged as an outlier, but I'm going to change that. * `process_remote_join`: stop flagging as outlier The events are now flagged as outliers later on, by `_auth_and_persist_outliers`. * `send_join`: remove `outlier=True` The events created here are returned in the result of `send_join` to `FederationHandler.do_invite_join`. From there they are passed into `FederationEventHandler.process_remote_join`, which passes them to `_auth_and_persist_outliers`... which sets the `outlier` flag. * `get_event_auth`: remove `outlier=True` stop flagging the events returned by `get_event_auth` as outliers. This method is only called by `_get_remote_auth_chain_for_event`, which passes the results into `_auth_and_persist_outliers`, which will flag them as outliers. * `_get_remote_auth_chain_for_event`: remove `outlier=True` we pass all the events into `_auth_and_persist_outliers`, which will now flag the events as outliers. * `_check_sigs_and_hash_and_fetch`: remove unused `outlier` parameter This param is now never set to True, so we can remove it. * `_check_sigs_and_hash_and_fetch_one`: remove unused `outlier` param This is no longer set anywhere, so we can remove it. * `get_pdu`: remove unused `outlier` parameter ... and chase it down into `get_pdu_from_destination_raw`. * `event_from_pdu_json`: remove redundant `outlier` param This is never set to `True`, so can be removed. * changelog * update docstring
-
Philipp Matthias Schäfer authored
Co-authored-by:
reivilibre <olivier@librepush.net> Co-authored-by:
reivilibre <oliverw@matrix.org>
-
Fr3shTea authored
Co-authored-by:
reivilibre <olivier@librepush.net>
-
Dirk Klimpel authored
Co-authored-by:
reivilibre <olivier@librepush.net>
-
reivilibre authored
Co-authored-by:
Sean Quah <seanq@element.io>
-
reivilibre authored
Clarify SSO mapping provider documentation by writing `def` or `async def` before the names of methods, as appropriate. (#11681)
-
Callum Macdonald authored
-
Donny Johnson authored
Co-authored-by:
reivilibre <olivier@librepush.net>
-
- Jan 04, 2022
-
-
Richard van der Hoff authored
this should not be a case-insensitive match.
-
Richard van der Hoff authored
* Fix AssertionErrors after purging events If you purged a bunch of events from your database, and then restarted synapse without receiving more events, then you would get a bunch of AssertionErrors on restart. This fixes the situation by rewinding the stream processors. * `check-newsfragment`: ignore deleted newsfiles
-
Richard van der Hoff authored
Events returned by `backfill` should not be flagged as outliers. Fixes: ``` AssertionError: null File "synapse/handlers/federation.py", line 313, in try_backfill dom, room_id, limit=100, extremities=extremities File "synapse/handlers/federation_event.py", line 517, in backfill await self._process_pulled_events(dest, events, backfilled=True) File "synapse/handlers/federation_event.py", line 642, in _process_pulled_events await self._process_pulled_event(origin, ev, backfilled=backfilled) File "synapse/handlers/federation_event.py", line 669, in _process_pulled_event assert not event.internal_metadata.is_outlier() ``` See https://sentry.matrix.org/sentry/synapse-matrixorg/issues/231992 Fixes #8894.
-
Richard van der Hoff authored
* Push `get_room_{min,max_stream_ordering}` into StreamStore Both implementations of this are identical, so we may as well push it down and get rid of the abstract base class nonsense. * Remove redundant `StreamStore` class This is empty now * Remove redundant `get_current_events_token` This was an exact duplicate of `get_room_max_stream_ordering`, so let's get rid of it. * newsfile
-
Richard van der Hoff authored
"Unknown room" can mean a multitude of things here. To help with debugging, add some more words to the exception text.
-
Patrick Cloke authored
Invites and knocks will now include the topic in the stripped state send to clients before joining the room.
-
- Jan 03, 2022
-
-
Shay authored
* update Trove classifiers to remove py36 * stop building bionic * update dh-virtualenv * newsfragment * fix newsfragment * update version refs * another try at correct tag * Update changelog
-
- Dec 30, 2021
-
-
Patrick Cloke authored
To improve type hints throughout the code.
-
Dirk Klimpel authored
-
- Dec 29, 2021
-
-
reivilibre authored
Fix a type annotation in `test_account_data.py` and remove it from the Mypy exclusion list. (#11657) Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com>
-
Dirk Klimpel authored
By using cast and making ignores more specific.
-
Patrick Cloke authored
Both of those APIs return state events, which will not have bundled aggregations added anyway.
-
Dirk Klimpel authored
-
- Dec 24, 2021
-
-
Shay authored
* update black version * run updated version of black on code * newsfragment * enumerate python versions
-
- Dec 23, 2021
-
-
Patrick Cloke authored
-
AndrewFerr authored
Signed-off-by:
Andrew Ferrazzutti <fair@miscworks.net>
-
- Dec 21, 2021
-
-
Shay authored
* remove python 3.6 and postgres 9.6 from github workflow * remove python 3.6 env from tox * newsfragment * correct postgres version * add py310 to tox env list
-
Richard van der Hoff authored
-
Richard van der Hoff authored
... to work around breakage on buster (https://github.com/Marco-Sulla/python-frozendict/issues/41)
-
reivilibre authored
-
Patrick Cloke authored
-
Richard van der Hoff authored
* Wrap `auth.get_user_by_req` in an opentracing span give `get_user_by_req` its own opentracing span, since it can result in a non-trivial number of sub-spans which it is useful to group together. This requires a bit of reorganisation because it also sets some tags (and may force tracing) on the servlet span. * Emit opentracing span for encoding json responses This can be a significant time sink. * Rename all sync spans with a prefix * Write an opentracing span for encoding sync response * opentracing span to group generate_room_entries * opentracing spans within sync.encode_response * changelog * Use the `trace` decorator instead of context managers
-
Richard van der Hoff authored
-