]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
remove control-port upload/download file interfaces
authorBrian Warner <warner@lothar.com>
Tue, 21 Apr 2015 17:48:06 +0000 (10:48 -0700)
committerBrian Warner <warner@lothar.com>
Tue, 21 Apr 2015 18:13:17 +0000 (11:13 -0700)
FURLs are unguessable, but an attacker who somehow learned this FURL
could overwrite files and read sensitive data.

This will break the memory tests. I will add a new interface to support
the memory tests soon.

refs ticket:1737

src/allmydata/control.py

index 15ab382d6ecad26b4ca93564ec5b267efe32d6ee..c29d5572fd6d3dd39f7aae9f7855f8fc32616978 100644 (file)
@@ -60,22 +60,6 @@ class ControlServer(Referenceable, service.Service):
     def remote_wait_for_client_connections(self, num_clients):
         return self.parent.debug_wait_for_client_connections(num_clients)
 
-    def remote_upload_from_file_to_uri(self, filename, convergence):
-        uploader = self.parent.getServiceNamed("uploader")
-        u = upload.FileName(filename, convergence=convergence)
-        d = uploader.upload(u)
-        d.addCallback(lambda results: results.get_uri())
-        return d
-
-    def remote_download_from_uri_to_file(self, uri, filename):
-        filenode = self.parent.create_node_from_uri(uri, name=filename)
-        if not IFileNode.providedBy(filenode):
-            raise AssertionError("The URI does not reference a file.")
-        c = FileWritingConsumer(filename)
-        d = filenode.read(c)
-        d.addCallback(lambda res: filename)
-        return d
-
     def remote_speed_test(self, count, size, mutable):
         assert size > 8
         log.msg("speed_test: count=%d, size=%d, mutable=%s" % (count, size,