summary refs log tree commit diff
path: root/synapse/federation
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-11-07 11:40:38 +0000
committerErik Johnston <erik@matrix.org>2014-11-07 11:40:38 +0000
commit328dab246376814c141095d63e5cef3b4cb52068 (patch)
treefa5e7f4ea04e49550be08a9ba52f9cc727cb66f0 /synapse/federation
parentAdd hash of current state to events (diff)
downloadsynapse-328dab246376814c141095d63e5cef3b4cb52068.tar.xz
Remove /context/ request
Diffstat (limited to 'synapse/federation')
-rw-r--r--synapse/federation/replication.py7
-rw-r--r--synapse/federation/transport.py9
2 files changed, 0 insertions, 16 deletions
diff --git a/synapse/federation/replication.py b/synapse/federation/replication.py
index d1eddf249d..37e7db0536 100644
--- a/synapse/federation/replication.py
+++ b/synapse/federation/replication.py
@@ -274,13 +274,6 @@ class ReplicationLayer(object):
 
     @defer.inlineCallbacks
     @log_function
-    def on_context_pdus_request(self, context):
-        raise NotImplementedError(
-            "on_context_pdus_request is a security violation"
-        )
-
-    @defer.inlineCallbacks
-    @log_function
     def on_backfill_request(self, context, versions, limit):
         pdus = yield self.handler.on_backfill_request(
             context, versions, limit
diff --git a/synapse/federation/transport.py b/synapse/federation/transport.py
index 04ad7e63ae..b9f7d54c71 100644
--- a/synapse/federation/transport.py
+++ b/synapse/federation/transport.py
@@ -403,15 +403,6 @@ class TransportLayer(object):
             )
         )
 
-        self.server.register_path(
-            "GET",
-            re.compile("^" + PREFIX + "/context/([^/]*)/$"),
-            self._with_authentication(
-                lambda origin, content, query, context:
-                handler.on_context_pdus_request(context)
-            )
-        )
-
         # This is when we receive a server-server Query
         self.server.register_path(
             "GET",