tahoe-lafs/tahoe-lafs.git
14 years agoconfiguration.txt and servers-of-happiness.txt: 1 <= happy <= N, not k <= happy ...
david-sarah [Fri, 18 Jun 2010 05:07:10 +0000 (22:07 -0700)]
configuration.txt and servers-of-happiness.txt: 1 <= happy <= N, not k <= happy <= N. Also minor wording changes.

14 years agotest_cli.py: fix test failure in CLI.test_listdir_unicode_good due to filenames retur...
david-sarah [Fri, 18 Jun 2010 04:51:10 +0000 (21:51 -0700)]
test_cli.py: fix test failure in CLI.test_listdir_unicode_good due to filenames returned from listdir_unicode no longer being normalized.

14 years agotahoe backup: unicode tests.
david-sarah [Fri, 18 Jun 2010 03:52:11 +0000 (20:52 -0700)]
tahoe backup: unicode tests.

14 years agoCLI: allow Unicode patterns in exclude option to 'tahoe backup'.
david-sarah [Thu, 17 Jun 2010 03:39:01 +0000 (20:39 -0700)]
CLI: allow Unicode patterns in exclude option to 'tahoe backup'.

14 years agodirnodes: fix normalization hole where childnames in directories created by nodemaker...
david-sarah [Fri, 18 Jun 2010 00:02:49 +0000 (17:02 -0700)]
dirnodes: fix normalization hole where childnames in directories created by nodemaker.create_mutable/immutable_directory would not be normalized. Add a test that we normalize names coming out of a directory.

14 years agodirnode.py: comments about normalization changes.
david-sarah [Thu, 17 Jun 2010 04:14:11 +0000 (21:14 -0700)]
dirnode.py: comments about normalization changes.

14 years agostringutils.py: remove unused import.
david-sarah [Thu, 17 Jun 2010 03:44:40 +0000 (20:44 -0700)]
stringutils.py: remove unused import.

14 years agotest_stringutils.py: take account of the output of listdir_unicode no longer being...
david-sarah [Thu, 17 Jun 2010 03:44:09 +0000 (20:44 -0700)]
test_stringutils.py: take account of the output of listdir_unicode no longer being normalized. Also use Unicode escapes, not UTF-8.

14 years agotest_dirnode.py: partial tests for normalization changes.
david-sarah [Thu, 17 Jun 2010 03:40:25 +0000 (20:40 -0700)]
test_dirnode.py: partial tests for normalization changes.

14 years agoSFTP: get 'ctime' attribute from 'tahoe:linkmotime'.
david-sarah [Thu, 17 Jun 2010 03:37:44 +0000 (20:37 -0700)]
SFTP: get 'ctime' attribute from 'tahoe:linkmotime'.

14 years agostringutils.py: don't NFC-normalize the output of listdir_unicode.
david-sarah [Thu, 17 Jun 2010 01:55:37 +0000 (18:55 -0700)]
stringutils.py: don't NFC-normalize the output of listdir_unicode.

14 years agostringutils.py: Add encoding argument to quote_output. Also work around a bug in...
david-sarah [Wed, 16 Jun 2010 04:20:12 +0000 (21:20 -0700)]
stringutils.py: Add encoding argument to quote_output. Also work around a bug in locale.getpreferredencoding on older Pythons.

14 years agoProvisional patch to NFC-normalize filenames going in and out of Tahoe directories.
david-sarah [Wed, 16 Jun 2010 03:14:50 +0000 (20:14 -0700)]
Provisional patch to NFC-normalize filenames going in and out of Tahoe directories.

14 years agohow_to_make_a_tahoe-lafs_release.txt: reordering, add fuse-sshfs@lists.sourceforge...
david-sarah [Fri, 18 Jun 2010 04:18:54 +0000 (21:18 -0700)]
how_to_make_a_tahoe-lafs_release.txt: reordering, add fuse-sshfs@lists.sourceforge.list as place to send relnotes.

14 years agorunning.html: fix overeager replacement of 'tahoe' with 'Tahoe-LAFS', and some simpli...
david-sarah [Thu, 17 Jun 2010 00:09:52 +0000 (17:09 -0700)]
running.html: fix overeager replacement of 'tahoe' with 'Tahoe-LAFS', and some simplifications.

14 years agoAdd a specification for servers of happiness.
Kevan Carstensen [Mon, 24 May 2010 00:35:08 +0000 (17:35 -0700)]
Add a specification for servers of happiness.

14 years agoNote that servers of happiness only applies to immutable files for the moment
Kevan Carstensen [Mon, 24 May 2010 04:28:36 +0000 (21:28 -0700)]
Note that servers of happiness only applies to immutable files for the moment

14 years agoAdd a note about running Tahoe-LAFS on a small grid to running.html
Zooko O'Whielacronx [Wed, 16 Jun 2010 14:02:27 +0000 (07:02 -0700)]
Add a note about running Tahoe-LAFS on a small grid to running.html
also Change "tahoe" and "Tahoe" to "Tahoe-LAFS" in running.html
author: Kevan Carstensen

14 years agoCLI.txt: introduce 'create-alias' before 'add-alias', document Unicode argument suppo...
david-sarah [Thu, 10 Jun 2010 22:55:47 +0000 (15:55 -0700)]
CLI.txt: introduce 'create-alias' before 'add-alias', document Unicode argument support, and other minor updates.

14 years agotest_system.py: investigate failure in allmydata.test.test_system.SystemTest.test_upl...
david-sarah [Wed, 16 Jun 2010 00:16:48 +0000 (17:16 -0700)]
test_system.py: investigate failure in allmydata.test.test_system.SystemTest.test_upload_and_download_random_key due to bytes_sent not being an int

14 years agoSFTP: remove a dubious use of 'pragma: no cover'.
david-sarah [Sun, 13 Jun 2010 16:43:56 +0000 (09:43 -0700)]
SFTP: remove a dubious use of 'pragma: no cover'.

14 years agoSFTP: test that renaming onto a just-opened file fails.
david-sarah [Sat, 12 Jun 2010 03:37:09 +0000 (20:37 -0700)]
SFTP: test that renaming onto a just-opened file fails.

14 years agoSFTP: further small improvements to test coverage. Also ensure that after a test...
david-sarah [Sat, 12 Jun 2010 03:07:37 +0000 (20:07 -0700)]
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.

14 years agoSFTP: further improve test coverage (paths containing '.', bad data for posix-rename...
david-sarah [Fri, 11 Jun 2010 21:31:42 +0000 (14:31 -0700)]
SFTP: further improve test coverage (paths containing '.', bad data for posix-rename extension, and error in test of openShell).

14 years agoSFTP: improve test coverage for no-write on mutable files, and check for heisenfile...
david-sarah [Fri, 11 Jun 2010 20:57:52 +0000 (13:57 -0700)]
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.

14 years agoSFTP: add test for extension of file opened with FXF_APPEND.
david-sarah [Thu, 10 Jun 2010 18:26:47 +0000 (11:26 -0700)]
SFTP: add test for extension of file opened with FXF_APPEND.

14 years agoNEWS: add UTF-8 coding declaration.
david-sarah [Wed, 9 Jun 2010 23:48:51 +0000 (16:48 -0700)]
NEWS: add UTF-8 coding declaration.

14 years agotests: bump up the timeout on this iputil test from 2s to 4s
Zooko O'Whielacronx [Wed, 9 Jun 2010 14:30:17 +0000 (07:30 -0700)]
tests: bump up the timeout on this iputil test from 2s to 4s

14 years agodocs: a few tweaks to NEWS and CREDITS and make quickstart.html point to 1.7.0β!
Zooko O'Whielacronx [Wed, 9 Jun 2010 14:29:27 +0000 (07:29 -0700)]
docs: a few tweaks to NEWS and CREDITS and make quickstart.html point to 1.7.0β!

14 years agodocs: Update NEWS file with new features and bugfixes in 1.7.0
francois [Wed, 9 Jun 2010 09:11:20 +0000 (02:11 -0700)]
docs: Update NEWS file with new features and bugfixes in 1.7.0

14 years agodocs: wording fix, thanks to Jeremy Visser, fix #987
francois [Wed, 9 Jun 2010 08:11:03 +0000 (01:11 -0700)]
docs: wording fix, thanks to Jeremy Visser, fix #987

14 years agoSFTP: fix most significant memory leak described in #1045 (due to a file being added...
david-sarah [Wed, 9 Jun 2010 08:00:03 +0000 (01:00 -0700)]
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).

14 years agotest_stringutils.py: Fix test failure on CentOS builder, possibly Python 2.4.3-related.
david-sarah [Wed, 9 Jun 2010 06:50:56 +0000 (23:50 -0700)]
test_stringutils.py: Fix test failure on CentOS builder, possibly Python 2.4.3-related.

14 years agoFix for Unicode-related test failures on Zooko's OS X 10.6 machine.
david-sarah [Wed, 9 Jun 2010 05:54:48 +0000 (22:54 -0700)]
Fix for Unicode-related test failures on Zooko's OS X 10.6 machine.

14 years agodocs: update relnote.txt for Tahoe-LAFS v1.7.0β
Zooko O'Whielacronx [Wed, 9 Jun 2010 05:46:02 +0000 (22:46 -0700)]
docs: update relnote.txt for Tahoe-LAFS v1.7.0β

14 years agostringutils.py, sftpd.py: Portability fixes for Python <= 2.5.
david-sarah [Wed, 9 Jun 2010 01:33:02 +0000 (18:33 -0700)]
stringutils.py, sftpd.py: Portability fixes for Python <= 2.5.

14 years agosetup: move the mock library from install_requires to tests_require (re: #1016)
Zooko O'Whielacronx [Wed, 9 Jun 2010 05:05:42 +0000 (22:05 -0700)]
setup: move the mock library from install_requires to tests_require (re: #1016)

14 years agoBack out Windows-specific Unicode argument support for v1.7.
david-sarah [Wed, 9 Jun 2010 00:08:03 +0000 (17:08 -0700)]
Back out Windows-specific Unicode argument support for v1.7.

14 years ago_auto_deps.py: allow Python 2.4.3 on Redhat-based distributions.
david-sarah [Wed, 9 Jun 2010 00:36:46 +0000 (17:36 -0700)]
_auto_deps.py: allow Python 2.4.3 on Redhat-based distributions.

14 years agosetup: show-tool-versions.py: print out the output from the unix command "locale...
Zooko O'Whielacronx [Wed, 9 Jun 2010 04:07:14 +0000 (21:07 -0700)]
setup: show-tool-versions.py: print out the output from the unix command "locale" and re-arrange encoding data a little bit

14 years agosetup: add zope.interface to the packages described by show-tool-versions.py
Zooko O'Whielacronx [Wed, 9 Jun 2010 03:49:15 +0000 (20:49 -0700)]
setup: add zope.interface to the packages described by show-tool-versions.py

14 years agoCREDITS: update François's Description
Zooko O'Whielacronx [Tue, 8 Jun 2010 15:55:13 +0000 (08:55 -0700)]
CREDITS: update François's Description

14 years agoCREDITS: jsgf
Zooko O'Whielacronx [Tue, 8 Jun 2010 14:30:52 +0000 (07:30 -0700)]
CREDITS: jsgf

14 years agosetup: rename the setuptools_trial .egg that comes bundled in the base dir to not...
Zooko O'Whielacronx [Tue, 8 Jun 2010 04:16:07 +0000 (21:16 -0700)]
setup: rename the setuptools_trial .egg that comes bundled in the base dir to not have "-py2.6" in its name, since it works with other versions of python as well

14 years agosetup: rename the darcsver .egg that comes bundled in the base dir to not have "...
Zooko O'Whielacronx [Tue, 8 Jun 2010 04:15:34 +0000 (21:15 -0700)]
setup: rename the darcsver .egg that comes bundled in the base dir to not have "-py2.6" in its name, since it works with other versions of python as well

14 years agoSFTP: suppress NoSuchChildError if heisenfile attributes have been updated in setAttr...
david-sarah [Tue, 8 Jun 2010 06:37:53 +0000 (23:37 -0700)]
SFTP: suppress NoSuchChildError if heisenfile attributes have been updated in setAttrs, in the case where the parent is available.

14 years agoSFTP: ignore permissions when opening a file (needed for sshfs interoperability).
david-sarah [Tue, 8 Jun 2010 05:57:00 +0000 (22:57 -0700)]
SFTP: ignore permissions when opening a file (needed for sshfs interoperability).

14 years agotest_web.py: fix pyflakes warnings introduced by byterange patch.
david-sarah [Tue, 8 Jun 2010 04:20:12 +0000 (21:20 -0700)]
test_web.py: fix pyflakes warnings introduced by byterange patch.

14 years agoImprove HTTP/1.1 byterange handling
Jeremy Fitzhardinge [Wed, 10 Mar 2010 03:59:13 +0000 (20:59 -0700)]
Improve HTTP/1.1 byterange handling

Fix parsing of a Range: header to support:
 - multiple ranges (parsed, but not returned)
 - suffix byte ranges ("-2139")
 - correct handling of incorrectly formatted range headers
   (correct behaviour is to ignore the header and return the full
    file)
 - return appropriate error for ranges outside the file

Multiple ranges are parsed, but only the first range is returned.
Returning multiple ranges requires using the multipart/byterange
content type.

14 years agotests: bump up the timeout on these tests; MM's buildslave is sometimes extremely...
Zooko O'Whielacronx [Tue, 8 Jun 2010 03:37:54 +0000 (20:37 -0700)]
tests: bump up the timeout on these tests; MM's buildslave is sometimes extremely slow on tests, but it will complete them if given enough time. MM is working on making that buildslave more predictable in how long it takes to run tests.

14 years agotest_cli.py: remove invalid 'test_listdir_unicode_bad' test.
david-sarah [Mon, 7 Jun 2010 18:37:30 +0000 (11:37 -0700)]
test_cli.py: remove invalid 'test_listdir_unicode_bad' test.

14 years agocheck_memory.py: adapt to servers-of-happiness changes.
david-sarah [Tue, 8 Jun 2010 01:35:28 +0000 (18:35 -0700)]
check_memory.py: adapt to servers-of-happiness changes.

14 years agoshow-tool-versions.py: platform.linux_distribution() is not always available
david-sarah [Tue, 8 Jun 2010 00:45:23 +0000 (17:45 -0700)]
show-tool-versions.py: platform.linux_distribution() is not always available

14 years agoshow-tool-versions.py: show platform.linux_distribution()
david-sarah [Tue, 8 Jun 2010 00:38:29 +0000 (17:38 -0700)]
show-tool-versions.py: show platform.linux_distribution()

14 years agoRemove the 'tahoe debug consolidate' subcommand.
david-sarah [Mon, 7 Jun 2010 18:37:57 +0000 (11:37 -0700)]
Remove the 'tahoe debug consolidate' subcommand.

14 years agocommon_http.py, tahoe_cp.py: Fix an error in calling the superclass constructor in...
david-sarah [Mon, 7 Jun 2010 17:47:14 +0000 (10:47 -0700)]
common_http.py, tahoe_cp.py: Fix an error in calling the superclass constructor in HTTPError and MissingSourceError (introduced by the Unicode fixes).

14 years agotests: drastically increase timeout of this very time-consuming test in honor of...
Zooko O'Whielacronx [Mon, 7 Jun 2010 11:59:29 +0000 (04:59 -0700)]
tests: drastically increase timeout of this very time-consuming test in honor of François's ARM box

14 years agosetup: update authorship, datestamp, licensing, and add special exceptions to allow...
Zooko O'Whielacronx [Mon, 7 Jun 2010 06:23:29 +0000 (23:23 -0700)]
setup: update authorship, datestamp, licensing, and add special exceptions to allow combination with Eclipse- and QPL- licensed code

14 years agoFTP-and-SFTP.txt: minor technical correction to doc for 'no-write' flag.
david-sarah [Mon, 7 Jun 2010 06:16:00 +0000 (23:16 -0700)]
FTP-and-SFTP.txt: minor technical correction to doc for 'no-write' flag.

14 years agotest_stringutils.py: trivial error in exception message for skipped test.
david-sarah [Mon, 7 Jun 2010 06:14:55 +0000 (23:14 -0700)]
test_stringutils.py: trivial error in exception message for skipped test.

14 years agoMore Unicode test fixes.
david-sarah [Mon, 7 Jun 2010 05:33:58 +0000 (22:33 -0700)]
More Unicode test fixes.

14 years agoUnicode fixes for platforms with non-native-Unicode filesystems.
david-sarah [Mon, 7 Jun 2010 04:32:38 +0000 (21:32 -0700)]
Unicode fixes for platforms with non-native-Unicode filesystems.

14 years agoUnicode fixes.
david-sarah [Mon, 7 Jun 2010 01:02:15 +0000 (18:02 -0700)]
Unicode fixes.

14 years agosetup: organize misc/ scripts and tools and remove obsolete ones
Zooko O'Whielacronx [Mon, 7 Jun 2010 05:16:18 +0000 (22:16 -0700)]
setup: organize misc/ scripts and tools and remove obsolete ones
This is for ticket #1068.

14 years agoquickstart.html: link to snapshots page, sorted with most recent first.
david-sarah [Sun, 6 Jun 2010 22:11:27 +0000 (15:11 -0700)]
quickstart.html: link to snapshots page, sorted with most recent first.

14 years agoquickstart.html: We haven't released 1.7beta yet.
david-sarah [Sun, 6 Jun 2010 22:03:01 +0000 (15:03 -0700)]
quickstart.html: We haven't released 1.7beta yet.

14 years agosetup: loosen the Desert Island test to allow it to check the network for new package...
Zooko O'Whielacronx [Sun, 6 Jun 2010 17:57:17 +0000 (10:57 -0700)]
setup: loosen the Desert Island test to allow it to check the network for new packages as long as it doesn't actually download any
(You can look but don't touch.)

14 years agoRaise Python version requirement to 2.4.4 for non-UCS-2 builds, to avoid a critical...
david-sarah [Sat, 5 Jun 2010 03:17:13 +0000 (20:17 -0700)]
Raise Python version requirement to 2.4.4 for non-UCS-2 builds, to avoid a critical Python security bug.

14 years agosetup: have the buildbots print out locale.getpreferredencoding(), locale.getdefaultl...
Zooko O'Whielacronx [Sat, 5 Jun 2010 16:29:32 +0000 (09:29 -0700)]
setup: have the buildbots print out locale.getpreferredencoding(), locale.getdefaultlocale(), locale.getlocale(), and os.path.supports_unicode_filenames
Even though that latter one is completely useless, I'm curious.

14 years agounicode tests: fix missing import
Zooko O'Whielacronx [Fri, 4 Jun 2010 14:26:30 +0000 (07:26 -0700)]
unicode tests: fix missing import

14 years agounicode: make test_cli test a non-ascii argument, and make the fallback term encoding...
Zooko O'Whielacronx [Fri, 4 Jun 2010 14:12:51 +0000 (07:12 -0700)]
unicode: make test_cli test a non-ascii argument, and make the fallback term encoding be locale.getpreferredencoding()

14 years agounicode: always decode json manifest as utf-8 then encode for stdout
Zooko O'Whielacronx [Fri, 4 Jun 2010 08:48:40 +0000 (01:48 -0700)]
unicode: always decode json manifest as utf-8 then encode for stdout
pyflakes pointed out that the exception handler fallback called an un-imported function, showing that the fallback wasn't being exercised.
I'm not 100% sure that this patch is right and would appreciate François or someone reviewing it.

14 years agofix flakes
Zooko O'Whielacronx [Fri, 4 Jun 2010 07:58:45 +0000 (00:58 -0700)]
fix flakes

14 years agofix syntax of assertion handling that isn't portable to older versions of Python
Zooko O'Whielacronx [Fri, 4 Jun 2010 07:58:05 +0000 (00:58 -0700)]
fix syntax of assertion handling that isn't portable to older versions of Python

14 years agotest_stringutils.py: Skip test test_listdir_unicode_good if filesystem supports only...
Francois Deppierraz [Fri, 21 May 2010 16:08:39 +0000 (09:08 -0700)]
test_stringutils.py: Skip test test_listdir_unicode_good if filesystem supports only ASCII filenames

14 years agotest_stringutils.py: Skip test_listdir_unicode on mocked platform which cannot store...
Francois Deppierraz [Fri, 21 May 2010 16:05:59 +0000 (09:05 -0700)]
test_stringutils.py: Skip test_listdir_unicode on mocked platform which cannot store non-ASCII filenames

14 years agotest_stringutils.py: Add a test class for OpenBSD 4.1 with LANG=C
Francois Deppierraz [Fri, 21 May 2010 14:00:53 +0000 (07:00 -0700)]
test_stringutils.py: Add a test class for OpenBSD 4.1 with LANG=C

14 years agotest_stringutils.py: Mock the open() call in test_open_unicode
Francois Deppierraz [Fri, 21 May 2010 13:58:17 +0000 (06:58 -0700)]
test_stringutils.py: Mock the open() call in test_open_unicode

This test ensure that open(a_unicode_string) is used on Unicode platforms
(Windows or MacOS X) and that open(a_correctly_encoded_bytestring) on other
platforms such as Unix.

14 years agotest_stringutils.py: Fix a trivial Python 2.4 syntax incompatibility
Francois Deppierraz [Fri, 21 May 2010 09:33:45 +0000 (02:33 -0700)]
test_stringutils.py: Fix a trivial Python 2.4 syntax incompatibility

14 years agotest_cli.py: Fix tests when sys.stdout.encoding=None and refactor this code into...
Francois Deppierraz [Thu, 20 May 2010 08:44:47 +0000 (01:44 -0700)]
test_cli.py: Fix tests when sys.stdout.encoding=None and refactor this code into functions

14 years agoFix handling of correctly encoded unicode filenames (#534)
Francois Deppierraz [Thu, 20 May 2010 00:43:56 +0000 (17:43 -0700)]
Fix handling of correctly encoded unicode filenames (#534)

Tahoe CLI commands working on local files, for instance 'tahoe cp' or 'tahoe
backup', have been improved to correctly handle filenames containing non-ASCII
characters.

In the case where Tahoe encounters a filename which cannot be decoded using the
system encoding, an error will be returned and the operation will fail.  Under
Linux, this typically happens when the filesystem contains filenames encoded
with another encoding, for instance latin1, than the system locale, for
instance UTF-8.  In such case, you'll need to fix your system with tools such
as 'convmv' before using Tahoe CLI.

All CLI commands have been improved to support non-ASCII parameters such as
filenames and aliases on all supported Operating Systems except Windows as of
now.

14 years agostringutils.py: Unicode helper functions + associated tests
Francois Deppierraz [Thu, 20 May 2010 00:41:05 +0000 (17:41 -0700)]
stringutils.py: Unicode helper functions + associated tests

This file contains a bunch of helper functions which converts
unicode string from and to argv, filenames and stdout.

14 years agoAdd dependency on Michael Foord's mock library
Francois Deppierraz [Wed, 19 May 2010 23:33:25 +0000 (16:33 -0700)]
Add dependency on Michael Foord's mock library

14 years agoResolve merge conflict for sftpd.py
david-sarah [Thu, 3 Jun 2010 18:25:37 +0000 (11:25 -0700)]
Resolve merge conflict for sftpd.py

14 years agoSFTP: possible fix for metadata times being shown as the epoch.
david-sarah [Wed, 2 Jun 2010 23:45:14 +0000 (16:45 -0700)]
SFTP: possible fix for metadata times being shown as the epoch.

14 years agoSFTP: further improvements to test coverage.
david-sarah [Wed, 2 Jun 2010 23:44:22 +0000 (16:44 -0700)]
SFTP: further improvements to test coverage.

14 years agoSFTP: improve test coverage. Also make creating a directory fail when permissions...
david-sarah [Wed, 2 Jun 2010 04:19:34 +0000 (21:19 -0700)]
SFTP: improve test coverage. Also make creating a directory fail when permissions are read-only (rather than ignoring the permissions).

14 years agodirnode.py: fix a bug in the no-write change for Adder, and improve test coverage...
david-sarah [Wed, 2 Jun 2010 03:26:41 +0000 (20:26 -0700)]
dirnode.py: fix a bug in the no-write change for Adder, and improve test coverage. Add a 'metadata' argument to create_subdirectory, with documentation. Also update some comments in test_dirnode.py made stale by the ctime/mtime change.

14 years agoSFTP: fix a bug that caused the temporary files underlying EncryptedTemporaryFiles...
david-sarah [Tue, 1 Jun 2010 05:53:10 +0000 (22:53 -0700)]
SFTP: fix a bug that caused the temporary files underlying EncryptedTemporaryFiles not to be closed.

14 years agoSFTP: changes for #1063 ('no-write' field) including comment:1 (clearing owner write...
david-sarah [Tue, 1 Jun 2010 05:11:39 +0000 (22:11 -0700)]
SFTP: changes for #1063 ('no-write' field) including comment:1 (clearing owner write permission diminishes to a read cap). Includes documentation changes, but not tests for the new behaviour.

14 years agoSFTP: the same bug as in _sync_heisenfiles also occurred in two other places.
david-sarah [Sun, 30 May 2010 06:01:27 +0000 (23:01 -0700)]
SFTP: the same bug as in _sync_heisenfiles also occurred in two other places.

14 years agoSFTP: another try at fixing the _sync_heisenfiles bug.
david-sarah [Sun, 30 May 2010 05:52:54 +0000 (22:52 -0700)]
SFTP: another try at fixing the _sync_heisenfiles bug.

14 years agoSFTP: fix silly bug in _sync_heisenfiles ('f is not ignore' vs 'not (f is ignore)').
david-sarah [Sun, 30 May 2010 05:38:07 +0000 (22:38 -0700)]
SFTP: fix silly bug in _sync_heisenfiles ('f is not ignore' vs 'not (f is ignore)').

14 years agoSFTP: log when a sync completes.
david-sarah [Sun, 30 May 2010 05:18:40 +0000 (22:18 -0700)]
SFTP: log when a sync completes.

14 years agoSFTP: fix bug in previous logging patch.
david-sarah [Sun, 30 May 2010 05:00:00 +0000 (22:00 -0700)]
SFTP: fix bug in previous logging patch.

14 years agoSFTP: more logging to track down OpenOffice hang.
david-sarah [Sun, 30 May 2010 04:08:09 +0000 (21:08 -0700)]
SFTP: more logging to track down OpenOffice hang.

14 years agoSFTP: avoid blocking close on a heisenfile that has been abandoned or never changed...
david-sarah [Sun, 30 May 2010 02:55:44 +0000 (19:55 -0700)]
SFTP: avoid blocking close on a heisenfile that has been abandoned or never changed. Also, improve the logging to help track down a case where OpenOffice hangs on opening a file with FXF_READ|FXF_WRITE.

14 years agoMove suppression of DeprecationWarning about BaseException.message from sftpd.py... trac-4400
david-sarah [Sat, 29 May 2010 05:05:37 +0000 (22:05 -0700)]
Move suppression of DeprecationWarning about BaseException.message from sftpd.py to main __init__.py. Also, remove the global suppression of the 'integer argument expected, got float' warning, which turned out to be a bug.

14 years agoSFTP: cater to clients that assume a file is created as soon as they have made an...
david-sarah [Sat, 29 May 2010 04:52:53 +0000 (21:52 -0700)]
SFTP: cater to clients that assume a file is created as soon as they have made an open request; also, fix some race conditions associated with closing a file at about the same time as renaming or removing it.

14 years agoSFTP: 'sync' any open files at a direntry before opening any new file at that direntr...
david-sarah [Tue, 25 May 2010 23:02:57 +0000 (16:02 -0700)]
SFTP: 'sync' any open files at a direntry before opening any new file at that direntry. This works around the sshfs misbehaviour of returning success to clients immediately on close.