From d3bd988f6be7830f0e1747c14f57459639876fde Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Wed, 1 Mar 2023 07:28:20 -0500 Subject: [PATCH 1/2] Fix conflicting URLs for dehydrated devices. --- synapse/rest/client/devices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/rest/client/devices.py b/synapse/rest/client/devices.py index 486c6dbbc5b3..dab4a77f7e7c 100644 --- a/synapse/rest/client/devices.py +++ b/synapse/rest/client/devices.py @@ -255,7 +255,7 @@ class DehydratedDeviceServlet(RestServlet): """ - PATTERNS = client_patterns("/org.matrix.msc2697.v2/dehydrated_device", releases=()) + PATTERNS = client_patterns("/org.matrix.msc2697.v2/dehydrated_device$", releases=()) def __init__(self, hs: "HomeServer"): super().__init__() From f3dabb994e7012aa21a48dde0ae1b45c0cfcd954 Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Wed, 1 Mar 2023 07:31:48 -0500 Subject: [PATCH 2/2] Newsfragment --- changelog.d/15180.bugfix | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/15180.bugfix diff --git a/changelog.d/15180.bugfix b/changelog.d/15180.bugfix new file mode 100644 index 000000000000..e7a3dcd41a37 --- /dev/null +++ b/changelog.d/15180.bugfix @@ -0,0 +1 @@ +Fix a bug introduced in Synapse 1.78.0 where requests to claim dehydrated devices would fail with a `405` error.