Itamar Turner-Trauring
430bc51e29
SFTP integration tests pass on Python 3.
2021-05-10 11:41:59 -04:00
Jason R. Coombs
1b46f981c6
Remove AccountURLChecker, the code that relies on it, associated tests, and docs.
2021-04-17 17:01:15 -04:00
Itamar Turner-Trauring
943eabab28
Pacify flake8.
2021-01-29 10:02:16 -05:00
Itamar Turner-Trauring
6fd62eb25e
Merge remote-tracking branch 'origin/master' into 3579.ftp-python-3
2021-01-28 15:15:57 -05:00
Itamar Turner-Trauring
d1be6b4bde
Prepare for merge.
2021-01-28 15:10:57 -05:00
Itamar Turner-Trauring
0902c8e156
Merge remote-tracking branch 'origin/master' into 3584.integration-tests-sftp
2021-01-21 13:34:51 -05:00
Itamar Turner-Trauring
8f1864842f
Fix integration tests.
2021-01-11 15:23:17 -05:00
Itamar Turner-Trauring
1b1d87f9f9
Merge branch '3584.integration-tests-sftp' into 3579.ftp-python-3
2021-01-11 14:05:07 -05:00
Itamar Turner-Trauring
3b29a5f707
Work with new Unicode configs.
2021-01-07 11:59:23 -05:00
Itamar Turner-Trauring
7b091bde9b
Port to Python 3.
2021-01-06 10:51:05 -05:00
Itamar Turner-Trauring
ebaf075966
Another passing test on Python 3.
2021-01-06 09:38:43 -05:00
Itamar Turner-Trauring
d82bcc5280
Another passing test on Python 3.
2021-01-06 09:26:18 -05:00
Itamar Turner-Trauring
06fb9496ab
Another test passing on Python 3.
2021-01-05 16:35:57 -05:00
Itamar Turner-Trauring
0241244e49
Another test passing on Python 3.
2021-01-05 16:30:17 -05:00
Itamar Turner-Trauring
3a6b92f39f
More progress to passing tests on Python 3.
2021-01-04 11:48:38 -05:00
Itamar Turner-Trauring
2bf278e55d
Even more tests passing on Python 3.
2021-01-04 11:39:25 -05:00
Itamar Turner-Trauring
3d42030e01
More tests pass on Python 3.
2021-01-04 11:21:26 -05:00
Jason R. Coombs
574613a892
Merge branch 'master' into 3399.mypy
2020-12-26 12:45:09 -05:00
Jason R. Coombs
41c341a3cc
Prefer type(None) for better compatibility.
2020-11-29 15:24:20 -05:00
Jean-Paul Calderone
1a5efa5ec9
Just let the test use the real SFTPServer service
2020-11-24 14:05:00 -05:00
Jason R. Coombs
480bec6d0d
Rename 'ShortReadOnlySFTPFile.async' to '.async_' for compatibility with Python 3.7 and later.
2020-08-21 19:55:34 -04:00
tpltnt
c8f11dc2d3
ported old-style classes to new-style
2019-05-26 08:28:18 +02:00
heartsucker
a087a5be72
removed tuple unpacking in function definitons for python3 compatibility
2019-04-18 13:37:18 +02:00
heartsucker
0750dbac38
updated all python files to use pep-3110 exception syntax for python3 compatibility
2019-04-04 11:57:58 +02:00
heartsucker
f4ff91a6c1
updated python2 long numeric literals for python3 compatibility
2019-04-03 10:04:02 +02:00
heartsucker
129ef22185
updated instances of octal literals to use the format 0o123 for python3 compatibility
2019-03-29 11:08:44 +01:00
Jean-Paul Calderone
64243527eb
Remove the strange option to not use flog
2018-04-26 15:08:14 -04:00
meejah
49ae2c5eb7
use @implementer instead of implements
...
Also, derive some more things from 'object'
2017-02-27 11:01:30 -07:00
Daira Hopwood
b6be693cbe
Add a test, add missing imports. refs #2388
...
This tests ftpd, but not sftpd. Doing this sort of test on sftpd
requires the creation of a valid pubkey/privkey file pair, which is more
work than I want to do right now.
init_ftp/init_sftp were changed to interpret the configured
accounts.file as relative to the node's basedir, with
abspath_expanduser_unicode(accountfile, base=self.basedir).
This would happen naturally in a real node, since it os.chdir()s
to the basedir before doing anything. But tests don't do that.
Author: Brian Warner <warner@lothar.com>
Author: Daira Hopwood <daira@jacaranda.org>
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-03-24 17:10:00 +00:00
Daira Hopwood
3066039f0f
Ensure that path parameters to SFTPServer and FTPServer constructors are unicode. refs #2388
...
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2015-03-24 16:46:40 +00:00
David-Sarah Hopwood
50c6562901
Improve SFTP error handling and remove use of IFinishableConsumer. fixes #1525
...
Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
2013-03-19 05:37:02 +00:00
David-Sarah Hopwood
48a2989ee1
sftpd.py: switch from using bare asserts to assertutil.
...
Signed-off-by: David-Sarah Hopwood <david-sarah@jacaranda.org>
2013-03-19 02:34:27 +00:00
david-sarah
d9c7dfa4a0
Update more links from http: to https: in documentation and comments.
2012-03-13 20:26:54 +00:00
david-sarah
1b7b3bd0d4
SFTP: add a comment about a subtle interaction between OverwriteableFileConsumer and GeneralSFTPFile, and test the case it is commenting on.
2011-09-03 15:23:04 -07:00
Kevan Carstensen
a87fc8ffab
frontends/sftpd: Resolve incompatibilities between SFTP frontend and MDMF changes
2011-08-01 19:12:07 -07:00
david-sarah
bbed522033
Remove all trailing whitespace from .py files.
2011-08-08 17:11:17 -07:00
david-sarah
a2699ea6f6
SFTP: write an error message to standard error for unrecognized shell commands. Change the existing message for shell sessions to be written to standard error, and refactor some duplicated code. Also change the lines of the error messages to end in CRLF, and take into account Kevan's review comments. fixes #1442 , #1446
2011-07-29 16:31:02 -07:00
david-sarah
ed67df866c
SFTP: report unknown sizes as "0" instead of "?", to satisfy some clients. fixes #1337
2011-01-27 22:22:49 -08:00
david-sarah
05022dca36
Move EncryptedTemporaryFile from SFTP frontend to allmydata.util.fileutil, and make the FTP frontend also use it (fixing #1083 ).
2010-07-11 14:37:21 -07:00
david-sarah
15ddab08ed
SFTP: address some of the comments in zooko's review ( #1106 ).
2010-07-11 19:55:37 -07:00
david-sarah
88169328be
SFTP: don't call .stopProducing on the producer registered with OverwriteableFileConsumer (which breaks with warner's new downloader).
2010-06-28 16:19:26 -07:00
david-sarah
c1412c8a81
SFTP: get 'ctime' attribute from 'tahoe:linkmotime'.
2010-06-16 20:37:44 -07:00
david-sarah
a3acb2b773
SFTP: remove a dubious use of 'pragma: no cover'.
2010-06-13 09:43:56 -07:00
david-sarah
b67f8b66c8
SFTP: further small improvements to test coverage. Also ensure that after a test failure, later tests don't fail spuriously due to the checks for heisenfile leaks.
2010-06-11 20:07:37 -07:00
david-sarah
b4e074d250
SFTP: further improve test coverage (paths containing '.', bad data for posix-rename extension, and error in test of openShell).
2010-06-11 14:31:42 -07:00
david-sarah
52f87904ed
SFTP: improve test coverage for no-write on mutable files, and check for heisenfile table leaks in all relevant tests. Delete test_memory_leak since it is now redundant.
2010-06-11 13:57:52 -07:00
david-sarah
3c44389440
SFTP: fix most significant memory leak described in #1045 (due to a file being added to all_heisenfiles under more than one direntry when renamed).
2010-06-09 01:00:03 -07:00
david-sarah
80a89d3931
stringutils.py, sftpd.py: Portability fixes for Python <= 2.5.
2010-06-08 18:33:02 -07:00
david-sarah
4b5927fdb8
SFTP: suppress NoSuchChildError if heisenfile attributes have been updated in setAttrs, in the case where the parent is available.
2010-06-07 23:37:53 -07:00
david-sarah
195b4afa8f
SFTP: ignore permissions when opening a file (needed for sshfs interoperability).
2010-06-07 22:57:00 -07:00