Skip to content
Snippets Groups Projects
Unverified Commit 21687ec1 authored by reivilibre's avatar reivilibre Committed by GitHub
Browse files

Fix a long-standing spec compliance bug where Synapse would accept a trailing...

Fix a long-standing spec compliance bug where Synapse would accept a trailing slash on the end of `/get_missing_events` federation requests. (#13789)

* Don't accept a trailing slash on the end of /get_missing_events

* Newsfile

Signed-off-by: default avatarOlivier Wilkinson (reivilibre) <oliverw@matrix.org>

Signed-off-by: default avatarOlivier Wilkinson (reivilibre) <oliverw@matrix.org>
parent 12daceca
No related branches found
No related tags found
No related merge requests found
Fix a long-standing spec compliance bug where Synapse would accept a trailing slash on the end of `/get_missing_events` federation requests.
\ No newline at end of file
...@@ -549,8 +549,7 @@ class FederationClientKeysClaimServlet(BaseFederationServerServlet): ...@@ -549,8 +549,7 @@ class FederationClientKeysClaimServlet(BaseFederationServerServlet):
class FederationGetMissingEventsServlet(BaseFederationServerServlet): class FederationGetMissingEventsServlet(BaseFederationServerServlet):
# TODO(paul): Why does this path alone end with "/?" optional? PATH = "/get_missing_events/(?P<room_id>[^/]*)"
PATH = "/get_missing_events/(?P<room_id>[^/]*)/?"
async def on_POST( async def on_POST(
self, self,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment