Opened 14 years ago

Closed 14 years ago

#5630 closed Bug report (worksforme)

When the shared folder is set on USB memory, the writing date cannot be acquired.

Reported by: Daisuke Akimoto Owned by:
Priority: normal Component: FileZilla Server
Keywords: Cc:
Component version: Operating system type: Windows
Operating system version: XP SP3

Description

I am a developer of the FTP client software.
http://labs.laurahouse.net/syncmemo/introduction

There is a problem when USB Memory is specified for the shared folder with FileZilla.

My client software up-loads the file, and acquires LIST of the file immediately.
However, FileZilla doesn't return correct information on the update time.

The log is shown below.

01 2010-10-11 19:23:41.456 SyncMemo[3611:6a2b] setLog:Login start.
02 2010-10-11 19:23:41.470 SyncMemo[3611:6a2b] RESPONSE[220-FileZilla Server version 0.9.36 beta]
03 2010-10-11 19:23:41.472 SyncMemo[3611:6a2b] RESPONSE[220-written by Tim Kosse (Tim.Kosse@gmx.de)]
04 2010-10-11 19:23:41.477 SyncMemo[3611:6a2b] RESPONSE[220 Please visit http://sourceforge.net/projects/filezilla/]
05 2010-10-11 19:23:41.478 SyncMemo[3611:6a2b] COMMAND[USER user]
06 2010-10-11 19:23:41.481 SyncMemo[3611:6a2b] RESPONSE[331 Password required for daisuke]
07 2010-10-11 19:23:41.482 SyncMemo[3611:6a2b] COMMAND[PASS *******]
08 2010-10-11 19:23:41.486 SyncMemo[3611:6a2b] RESPONSE[230 Logged on]
09 2010-10-11 19:23:41.488 SyncMemo[3611:6a2b] COMMAND[CWD Documents/Memo]
10 2010-10-11 19:23:41.491 SyncMemo[3611:6a2b] RESPONSE[250 CWD successful. "/Documents/Memo" is current directory.]
11 2010-10-11 19:23:41.492 SyncMemo[3611:6a2b] COMMAND[TYPE I]
12 2010-10-11 19:23:41.495 SyncMemo[3611:6a2b] RESPONSE[200 Type set to I]
13 2010-10-11 19:23:41.496 SyncMemo[3611:6a2b] COMMAND[OPTS UTF8 OFF]
14 2010-10-11 19:23:41.501 SyncMemo[3611:6a2b] RESPONSE[200 UTF8 mode disabled]
15 2010-10-11 19:23:41.503 SyncMemo[3611:6a2b] setLog:Login complete.
16 2010-10-11 19:23:41.504 SyncMemo[3611:6a2b] COMMAND[PASV]
17 2010-10-11 19:23:41.507 SyncMemo[3611:6a2b] RESPONSE[227 Entering Passive Mode (192,168,0,105,6,237)]
18 2010-10-11 19:23:41.510 SyncMemo[3611:6a2b] COMMAND[LIST -lT]
19 2010-10-11 19:23:41.516 SyncMemo[3611:6a2b] RESPONSE[150 Connection accepted]
20 2010-10-11 19:23:41.520 SyncMemo[3611:6a2b] RESPONSE[226 Transfer OK]
21 2010-10-11 19:23:41.525 SyncMemo[3611:6a2b] setLog:  test.txt upload.
22 2010-10-11 19:23:41.527 SyncMemo[3611:6a2b] COMMAND[PASV]
23 2010-10-11 19:23:41.531 SyncMemo[3611:6a2b] RESPONSE[227 Entering Passive Mode (192,168,0,105,6,238)]
24 2010-10-11 19:23:41.533 SyncMemo[3611:6a2b] COMMAND[STOR test.txt]
25 2010-10-11 19:23:41.539 SyncMemo[3611:6a2b] RESPONSE[150 Connection accepted]
26 2010-10-11 19:23:41.567 SyncMemo[3611:6a2b] RESPONSE[226 Transfer OK]
27 2010-10-11 19:23:41.569 SyncMemo[3611:6a2b] COMMAND[PASV]
28 2010-10-11 19:23:41.573 SyncMemo[3611:6a2b] RESPONSE[227 Entering Passive Mode (192,168,0,105,6,239)]
29 2010-10-11 19:23:41.577 SyncMemo[3611:6a2b] COMMAND[LIST -lT]
30 2010-10-11 19:23:41.587 SyncMemo[3611:6a2b] RESPONSE[150 Connection accepted]
31 2010-10-11 19:23:41.589 SyncMemo[3611:6a2b] RESPONSE[226 Transfer OK]
32 2010-10-11 19:23:41.590 SyncMemo[3611:6a2b] parsedString[-rw-r--r-- 1 ftp ftp              4 Oct 11  2010 test.txt] 
33 2010-10-11 19:23:41.601 SyncMemo[3611:6a2b] COMMAND[QUIT]
34 2010-10-11 19:23:41.604 SyncMemo[3611:6a2b] RESPONSE[221 Goodbye]

24th line: up-loading
29th line: LIST command
32nd line: Result

After a few seconds, I acquired the list again. Then, it was possible to acquire it with the update that I expected as follows.

2010-10-11 19:24:02.354 SyncMemo[3611:691f] parsedString[-rw-r--r-- 1 ftp ftp              4 Oct 11 19:23 test.txt]

The latest writing date is expected for the client side to be returned.

This problem has not occurred in HDD. It is thought that the writing speed of USB Memory causes the problem.

Change History (1)

comment:1 by Tim Kosse, 14 years ago

Resolution: worksforme
Status: newclosed

This is intended and happens if the modification date is from the future.

This is an inherent limitation of the ls -l style listing format. The time can only ever be displayed for dates less than a year in the past, never for older files or files dated in the future.

If you need exact timestamps use the MLSD command to obtain directory listings.

Note: See TracTickets for help on using tickets.