summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2023-03-02 07:24:29 -0500
committerGitHub <noreply@github.com>2023-03-02 07:24:29 -0500
commit33a85cf08ccf3713599a168ae1ed10d35ada2009 (patch)
tree72167d4a970ab6917e766e1d49a3d63b3f57cc45
parentAdd Sytest jobs with the asyncio reactor enabled (#14101) (diff)
downloadsynapse-33a85cf08ccf3713599a168ae1ed10d35ada2009.tar.xz
Fix conflicting URLs for dehydrated devices. (#15180)
-rw-r--r--changelog.d/15180.bugfix1
-rw-r--r--synapse/rest/client/devices.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/15180.bugfix b/changelog.d/15180.bugfix
new file mode 100644
index 0000000000..e7a3dcd41a
--- /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.
diff --git a/synapse/rest/client/devices.py b/synapse/rest/client/devices.py
index 486c6dbbc5..dab4a77f7e 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__()