SFTP directory listing doesn't show (or shows wrong mtime and size for) files that have been opened but not yet uploaded #1061

Open
opened 2010-05-29 04:56:45 +00:00 by davidsarah · 3 comments
davidsarah commented 2010-05-29 04:56:45 +00:00
Owner

Original problem: The SFTP implementation showed all modification times in directory listings as 1970-01-01 00:00:00 UTC, converted to local time.

Current problem: 'openDirectory' does not consult the list of heisenfiles. So a directory listing might not show the existence or correct metadata for a file that has not been uploaded yet.

Original problem: The SFTP implementation showed all modification times in directory listings as 1970-01-01 00:00:00 UTC, converted to local time. Current problem: 'openDirectory' does not consult the list of heisenfiles. So a directory listing might not show the existence or correct metadata for a file that has not been uploaded yet.
tahoe-lafs added the
code-frontend
major
defect
1.6.1
labels 2010-05-29 04:56:45 +00:00
tahoe-lafs added this to the 1.7.0 milestone 2010-05-29 04:56:45 +00:00
davidsarah commented 2010-06-03 04:08:13 +00:00
Author
Owner

This is now working in some cases, but there is an additional problem with 'openDirectory' not consulting the list of open files (heisenfiles). So a directory listing might not show the existence or correct metadata for a file that has not been uploaded yet.

The original problem was due to the "atime" field not being set in the case where the modification time is obtained from tahoe:linkmotime. (The SFTP protocol requires both "atime" and "mtime" to be present if either are.)

This is now working in some cases, but there is an additional problem with 'openDirectory' not consulting the list of open files (heisenfiles). So a directory listing might not show the existence or correct metadata for a file that has not been uploaded yet. The original problem was due to the "atime" field not being set in the case where the modification time is obtained from tahoe:linkmotime. (The SFTP protocol requires both "atime" and "mtime" to be present if either are.)
zooko commented 2010-06-18 05:10:38 +00:00
Author
Owner

I think this would be fixed by changeset:c1412c8a81aa395d. David-Sarah: is that right?

I think this would be fixed by changeset:c1412c8a81aa395d. David-Sarah: is that right?
davidsarah commented 2010-06-19 01:28:56 +00:00
Author
Owner

Replying to zooko:

I think this would be fixed by changeset:c1412c8a81aa395d. David-Sarah: is that right?

Apart from the problem with directory listings mentioned in comment:119292, yes. I don't intend to fix that problem for 1.7.0.

Replying to [zooko](/tahoe-lafs/trac-2024-07-25/issues/1061#issuecomment-119293): > I think this would be fixed by changeset:c1412c8a81aa395d. David-Sarah: is that right? Apart from the problem with directory listings mentioned in [comment:119292](/tahoe-lafs/trac-2024-07-25/issues/1061#issuecomment-119292), yes. I don't intend to fix that problem for 1.7.0.
tahoe-lafs modified the milestone from 1.7.0 to 1.7.1 2010-06-19 01:28:56 +00:00
tahoe-lafs changed title from SFTP shows all mtimes as the Unix epoch (converted to local time) to directory listing doesn't show files that have been opened but not yet uploaded 2010-07-10 18:51:35 +00:00
tahoe-lafs changed title from directory listing doesn't show files that have been opened but not yet uploaded to SFTP directory listing doesn't show (or shows wrong mtime and size for) files that have been opened but not yet uploaded 2010-07-10 18:58:44 +00:00
tahoe-lafs modified the milestone from 1.7.1 to 1.8.0 2010-07-17 04:22:15 +00:00
tahoe-lafs modified the milestone from 1.8.0 to soon 2010-08-10 03:33:53 +00:00
tahoe-lafs modified the milestone from soon to 1.9.0 2011-01-15 22:19:25 +00:00
tahoe-lafs modified the milestone from 1.9.0 to 1.10.0 2011-05-28 19:28:20 +00:00
tahoe-lafs modified the milestone from 1.11.0 to soon 2013-08-13 23:02:10 +00:00
tahoe-lafs added
code-frontend-ftp-sftp
and removed
code-frontend
labels 2014-12-02 19:43:21 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tahoe-lafs/trac-2024-07-25#1061
No description provided.