From 8cab80fc08663cd958d902582249cf2daa5333b4 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Tue, 15 Oct 2024 10:41:19 +0100 Subject: [PATCH 1/2] Include the destination in the error of 'Destination mismatch' --- synapse/federation/transport/server/_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/federation/transport/server/_base.py b/synapse/federation/transport/server/_base.py index 9094201da00..cba309635b7 100644 --- a/synapse/federation/transport/server/_base.py +++ b/synapse/federation/transport/server/_base.py @@ -113,7 +113,7 @@ async def authenticate_request( ): raise AuthenticationError( HTTPStatus.UNAUTHORIZED, - "Destination mismatch in auth header", + f"Destination mismatch in auth header, received: {destination!r}", Codes.UNAUTHORIZED, ) if ( From a83757e502e299d39c9eb8d5bef420457f9d7eed Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Tue, 15 Oct 2024 10:42:54 +0100 Subject: [PATCH 2/2] Newsfile --- changelog.d/17830.misc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/17830.misc diff --git a/changelog.d/17830.misc b/changelog.d/17830.misc new file mode 100644 index 00000000000..b2cd91c0ad0 --- /dev/null +++ b/changelog.d/17830.misc @@ -0,0 +1 @@ +Include the destination in the error of 'Destination mismatch' on federation requests.