Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 696d4ff

Browse files
committed
Merge commit '5ffd68dca' into anoa/dinsic_release_1_21_x
* commit '5ffd68dca': 1.19.2 Newsfile Don't assume that an event has an origin field
2 parents e132187 + 5ffd68d commit 696d4ff

File tree

4 files changed

+19
-7
lines changed

4 files changed

+19
-7
lines changed

CHANGES.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
Synapse 1.19.2 (2020-09-16)
2+
===========================
3+
4+
Due to the issue below server admins are encouraged to upgrade as soon as possible.
5+
6+
Bugfixes
7+
--------
8+
9+
- Fix joining rooms over federation that include malformed events. ([\#8324](https://github.com/matrix-org/synapse/issues/8324))
10+
11+
112
Synapse 1.20.0rc3 (2020-09-11)
213
==============================
314

debian/changelog

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
matrix-synapse-py3 (1.19.0ubuntu1) UNRELEASED; urgency=medium
1+
matrix-synapse-py3 (1.19.2) stable; urgency=medium
22

3-
* Use Type=notify in systemd service
3+
* New synapse release 1.19.2.
44

5-
-- Dexter Chua <[email protected]> Wed, 26 Aug 2020 12:41:36 +0000
5+
-- Synapse Packaging team <[email protected]> Wed, 16 Sep 2020 12:50:30 +0100
66

77
matrix-synapse-py3 (1.19.1) stable; urgency=medium
88

synapse/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
except ImportError:
4949
pass
5050

51-
__version__ = "1.20.0rc3"
51+
__version__ = "1.19.2"
5252

5353
if bool(os.environ.get("SYNAPSE_TEST_PATCH_LOG_CONTEXTS", False)):
5454
# We import here so that we don't have to install a bunch of deps when

synapse/federation/federation_client.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
from synapse.federation.federation_base import FederationBase, event_from_pdu_json
5555
from synapse.logging.context import make_deferred_yieldable, preserve_fn
5656
from synapse.logging.utils import log_function
57-
from synapse.types import JsonDict
57+
from synapse.types import JsonDict, get_domain_from_id
5858
from synapse.util import unwrapFirstError
5959
from synapse.util.caches.expiringcache import ExpiringCache
6060
from synapse.util.retryutils import NotRetryingDestination
@@ -386,10 +386,11 @@ async def handle_check_result(pdu: EventBase, deferred: Deferred):
386386
pdu.event_id, allow_rejected=True, allow_none=True
387387
)
388388

389-
if not res and pdu.origin != origin:
389+
pdu_origin = get_domain_from_id(pdu.sender)
390+
if not res and pdu_origin != origin:
390391
try:
391392
res = await self.get_pdu(
392-
destinations=[pdu.origin],
393+
destinations=[pdu_origin],
393394
event_id=pdu.event_id,
394395
room_version=room_version,
395396
outlier=outlier,

0 commit comments

Comments
 (0)