Opened at 2010-05-29T04:56:45Z
Last modified at 2014-12-02T19:43:21Z
#1061 assigned defect
SFTP directory listing doesn't show (or shows wrong mtime and size for) files that have been opened but not yet uploaded
Reported by: | davidsarah | Owned by: | davidsarah |
---|---|---|---|
Priority: | major | Milestone: | soon |
Component: | code-frontend-ftp-sftp | Version: | 1.6.1 |
Keywords: | sftp metadata time test | Cc: | |
Launchpad Bug: |
Description (last modified by daira)
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.
Change History (13)
comment:1 Changed at 2010-05-29T05:21:06Z by davidsarah
- Owner set to davidsarah
- Status changed from new to assigned
comment:2 Changed at 2010-06-03T04:08:13Z by davidsarah
comment:3 follow-up: ↓ 4 Changed at 2010-06-18T05:10:38Z by zooko
- Status changed from assigned to new
I think this would be fixed by c1412c8a81aa395d. David-Sarah: is that right?
comment:4 in reply to: ↑ 3 Changed at 2010-06-19T01:28:56Z by davidsarah
- Milestone changed from 1.7.0 to 1.7.1
Replying to zooko:
I think this would be fixed by c1412c8a81aa395d. David-Sarah: is that right?
Apart from the problem with directory listings mentioned in comment:2, yes. I don't intend to fix that problem for 1.7.0.
comment:5 Changed at 2010-06-19T07:28:42Z by davidsarah
- Status changed from new to assigned
comment:6 Changed at 2010-07-10T18:51:35Z by zooko
- Summary changed 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
comment:7 Changed at 2010-07-10T18:58:44Z by davidsarah
- Description modified (diff)
- Summary changed 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
comment:8 Changed at 2010-07-17T04:22:15Z by davidsarah
- Milestone changed from 1.7.1 to 1.8.0
comment:9 Changed at 2010-08-10T03:33:53Z by zooko
- Milestone changed from 1.8.0 to soon
comment:10 Changed at 2011-01-15T22:19:25Z by davidsarah
- Milestone changed from soon to 1.9.0
comment:11 Changed at 2011-05-28T19:28:20Z by davidsarah
- Milestone changed from 1.9.0 to 1.10.0
comment:12 Changed at 2013-08-13T23:02:10Z by daira
- Description modified (diff)
- Milestone changed from 1.11.0 to soon
comment:13 Changed at 2014-12-02T19:43:21Z by warner
- Component changed from code-frontend to code-frontend-ftp-sftp
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.)