Jump to content


Photo

Incorrect date & time for first file retrieving via MLSD or LIST


  • Please log in to reply
7 replies to this topic

#1 2BrightSparks

2BrightSparks
  • Members
  • 44 posts
  • Gender:
    Male

Posted 23 October 2006 - 08:26 AM

Hi, I've found what appears to be a recently introduced bug. When retrieving the information from an MLSD or LIST listing the very first file has the wrong date & time. I can reproduce this bug using a clients FTP server (which returns the following in the header when connecting: Net::FTPServer/1.120-1 ME::VFS::Interface::FTP/8596)

Using an older SmartFTP client it was returning the correct date & time of the very first file, but in the latest release the wrong date & time is being returned. Note that this problem only occurs with the first file in a directory, all other files have the correct date & time. I've tested using the standard Windows command line FTP client (which doesn't use MLSD) and it's returning the correct date & time, and also with the FileZilla client (using LIST) which also returns the correct date & time.

Note that I'm using the library, not the SmartFTP client. I was just using the SmartFTP client to confirm the problem isn't in my code.

Thanks

#2 mb

mb

    Developer

  • Administrators
  • 11525 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 23 October 2006 - 10:10 AM

As I cannot reproduce the problem you have reported please provide a detailed bug report with the log of the FTP session, the raw directory listing and a screenshot of what the latest version of SmartFTP shows in the Remote Browser.

Thank you.
Regards,
-Mat

#3 2BrightSparks

2BrightSparks
  • Members
  • 44 posts
  • Gender:
    Male

Posted 23 October 2006 - 09:35 PM

As I cannot reproduce the problem you have reported please provide a detailed bug report with the log of the FTP session, the raw directory listing and a screenshot of what the latest version of SmartFTP shows in the Remote Browser.

Thank you.
Regards,
-Mat

Hi, all details are below. The problem is with file1.txt. What is interesting is that if you connect and go straight to the folder, then the wrong date & time is shown. But if you navigate to the folder then the correct date & time is shown. Also, if you connect and go straight to the folder and refresh then it shows the correct date & time.

So here are the screenshots, logs and raw listing for when it shows the correct date & time:

Posted Image

[20061023 21:19:23] Log opened
[20061023 21:19:23] SmartFTP v2.0.999.5
[20061023 21:19:23] Resolving host name "ftp.messagingengine.com"
[20061023 21:19:23] Connecting to 66.111.4.57 Port: 21
[20061023 21:19:23] Connected to ftp.messagingengine.com.
[20061023 21:19:24] 220 heartbeat1 FTP server (Net::FTPServer/1.120-1 ME::VFS::Interface::FTP/8596) ready.
[20061023 21:19:24] USER adrianne@fastmail.fm
[20061023 21:19:24] 331 Username OK, please send password.
[20061023 21:19:24] PASS (hidden)
[20061023 21:19:25] 230 Welcome adrianne@fastmail.fm.
[20061023 21:19:25] SYST
[20061023 21:19:25] 215 UNIX Type: L8
[20061023 21:19:25] Detected Server Type: UNIX
[20061023 21:19:25] FEAT
[20061023 21:19:25] 211-Extensions supported:
[20061023 21:19:26] HOST
[20061023 21:19:26] LANG EN*
[20061023 21:19:26] MDTM
[20061023 21:19:26] MLST TYPE*;SIZE*;MODIFY*;PERM*;UNIX.MODE*;
[20061023 21:19:26] REST STREAM
[20061023 21:19:26] SIZE
[20061023 21:19:26] TVFS
[20061023 21:19:26] UTF8
[20061023 21:19:26] 211 END
[20061023 21:19:26] Detected Server Software: WS_FTP Server 3.x
[20061023 21:19:26] SITE UTF8
[20061023 21:19:26] 501 Unknown SITE command.
[20061023 21:19:26] PWD
[20061023 21:19:26] 257 "/"
[20061023 21:19:26] TYPE A
[20061023 21:19:26] 200 TYPE changed to A.
[20061023 21:19:26] PASV
[20061023 21:19:27] 227 Entering Passive Mode (66,111,4,57,246,247)
[20061023 21:19:27] Opening data connection to 66.111.4.57 Port: 63223
[20061023 21:19:27] MLSD
[20061023 21:19:27] 150 Opening data connection for file listing.
[20061023 21:19:27] 93 bytes transferred. (372 bytes/s) (250 ms)
[20061023 21:19:27] 226 Listing complete. Data connection has been closed.
[20061023 21:19:31] CWD /adrianne.fastmail.fm
[20061023 21:19:32] 250 Changed directory OK.
[20061023 21:19:32] PWD
[20061023 21:19:32] 257 "/adrianne.fastmail.fm"
[20061023 21:19:32] PASV
[20061023 21:19:33] 227 Entering Passive Mode (66,111,4,57,198,120)
[20061023 21:19:33] Opening data connection to 66.111.4.57 Port: 50808
[20061023 21:19:33] MLSD
[20061023 21:19:33] 150 Opening data connection for file listing.
[20061023 21:19:33] 78 bytes transferred. (312 bytes/s) (250 ms)
[20061023 21:19:33] 226 Listing complete. Data connection has been closed.
[20061023 21:19:34] CWD /adrianne.fastmail.fm/files
[20061023 21:19:34] 250 Changed directory OK.
[20061023 21:19:34] PWD
[20061023 21:19:35] 257 "/adrianne.fastmail.fm/files"
[20061023 21:19:35] PASV
[20061023 21:19:35] 227 Entering Passive Mode (66,111,4,57,218,245)
[20061023 21:19:35] Opening data connection to 66.111.4.57 Port: 56053
[20061023 21:19:35] MLSD
[20061023 21:19:35] 150 Opening data connection for file listing.
[20061023 21:19:35] 159 bytes transferred. (600 bytes/s) (265 ms)
[20061023 21:19:36] 226 Listing complete. Data connection has been closed.
[20061023 21:19:36] CWD /adrianne.fastmail.fm/files/private
[20061023 21:19:37] 250 Changed directory OK.
[20061023 21:19:37] PWD
[20061023 21:19:37] 257 "/adrianne.fastmail.fm/files/private"
[20061023 21:19:37] PASV
[20061023 21:19:37] 227 Entering Passive Mode (66,111,4,57,253,95)
[20061023 21:19:37] Opening data connection to 66.111.4.57 Port: 64863
[20061023 21:19:37] MLSD
[20061023 21:19:38] 150 Opening data connection for file listing.
[20061023 21:19:38] 278 bytes transferred. (1.02 KB/s) (265 ms)
[20061023 21:19:38] 226 Listing complete. Data connection has been closed.
[20061023 21:19:39] CWD /adrianne.fastmail.fm/files/private/test
[20061023 21:19:40] 250 Changed directory OK.
[20061023 21:19:40] PWD
[20061023 21:19:40] 257 "/adrianne.fastmail.fm/files/private/test"
[20061023 21:19:40] PASV
[20061023 21:19:40] 227 Entering Passive Mode (66,111,4,57,236,116)
[20061023 21:19:40] Opening data connection to 66.111.4.57 Port: 60532
[20061023 21:19:40] MLSD
[20061023 21:19:40] 150 Opening data connection for file listing.
[20061023 21:19:41] 164 bytes transferred. (656 bytes/s) (250 ms)
[20061023 21:19:41] 226 Listing complete. Data connection has been closed.
[20061023 21:19:57] PASV
[20061023 21:19:58] 227 Entering Passive Mode (66,111,4,57,244,101)
[20061023 21:19:58] Opening data connection to 66.111.4.57 Port: 62565
[20061023 21:19:58] MLSD
[20061023 21:19:58] 150 Opening data connection for file listing.
[20061023 21:19:58] 164 bytes transferred. (618 bytes/s) (265 ms)
[20061023 21:19:58] 226 Listing complete. Data connection has been closed.
[20061023 21:20:46] Log closed

TYPE=file;SIZE=5;MODIFY=20061023075041;PERM=rwafd;UNIX.MODE=rw-r--r--; test1.txt
TYPE=file;SIZE=5;MODIFY=20061023075034;PERM=rwafd;UNIX.MODE=rw-r--r--; test2.txt


And here are the details when it's shown incorrectly:

Posted Image

[20061023 21:21:22] Log opened
[20061023 21:21:22] SmartFTP v2.0.999.5
[20061023 21:21:22] Resolving host name "ftp.messagingengine.com"
[20061023 21:21:22] Connecting to 66.111.4.57 Port: 21
[20061023 21:21:22] Connected to ftp.messagingengine.com.
[20061023 21:21:24] 220 heartbeat1 FTP server (Net::FTPServer/1.120-1 ME::VFS::Interface::FTP/8596) ready.
[20061023 21:21:24] USER adrianne@fastmail.fm
[20061023 21:21:24] 331 Username OK, please send password.
[20061023 21:21:24] PASS (hidden)
[20061023 21:21:24] 230 Welcome adrianne@fastmail.fm.
[20061023 21:21:24] SYST
[20061023 21:21:25] 215 UNIX Type: L8
[20061023 21:21:25] Detected Server Type: UNIX
[20061023 21:21:25] FEAT
[20061023 21:21:25] 211-Extensions supported:
[20061023 21:21:25] HOST
[20061023 21:21:25] LANG EN*
[20061023 21:21:25] MDTM
[20061023 21:21:25] MLST TYPE*;SIZE*;MODIFY*;PERM*;UNIX.MODE*;
[20061023 21:21:25] REST STREAM
[20061023 21:21:25] SIZE
[20061023 21:21:25] TVFS
[20061023 21:21:25] UTF8
[20061023 21:21:25] 211 END
[20061023 21:21:25] Detected Server Software: WS_FTP Server 3.x
[20061023 21:21:25] SITE UTF8
[20061023 21:21:26] 501 Unknown SITE command.
[20061023 21:21:26] PWD
[20061023 21:21:26] 257 "/"
[20061023 21:21:26] CWD /adrianne.fastmail.fm/files/private/test
[20061023 21:21:26] 250 Changed directory OK.
[20061023 21:21:26] PWD
[20061023 21:21:26] 257 "/adrianne.fastmail.fm/files/private/test"
[20061023 21:21:26] TYPE A
[20061023 21:21:27] 200 TYPE changed to A.
[20061023 21:21:27] PASV
[20061023 21:21:27] 227 Entering Passive Mode (66,111,4,57,217,248)
[20061023 21:21:27] Opening data connection to 66.111.4.57 Port: 55800
[20061023 21:21:27] MLSD
[20061023 21:21:27] 150 Opening data connection for file listing.
[20061023 21:21:27] 164 bytes transferred. (616 bytes/s) (266 ms)
[20061023 21:21:28] 226 Listing complete. Data connection has been closed.
[20061023 21:21:33] PASV
[20061023 21:21:33] 227 Entering Passive Mode (66,111,4,57,253,80)
[20061023 21:21:33] Opening data connection to 66.111.4.57 Port: 64848
[20061023 21:21:33] MLSD
[20061023 21:21:33] 150 Opening data connection for file listing.
[20061023 21:21:34] 164 bytes transferred. (656 bytes/s) (250 ms)
[20061023 21:21:34] 226 Listing complete. Data connection has been closed.
[20061023 21:22:05] Log closed

TYPE=file;SIZE=5;MODIFY=20061023075041;PERM=rwafd;UNIX.MODE=rw-r--r--; test1.txt
TYPE=file;SIZE=5;MODIFY=20061023075034;PERM=rwafd;UNIX.MODE=rw-r--r--; test2.txt

As you can see, the raw directory data is exactly the same as before, because it's basically doing a refresh when getting the raw data in the second call to MLSD.

I can provide you with the username and password so you can perform your own testing.

#4 mb

mb

    Developer

  • Administrators
  • 11525 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 24 October 2006 - 01:31 AM

Hello ..

Thanks. Yes please provide me with a test account. Still no success here :-(
I think its more likely that the server returns the wrong information the first time.

Regards,
-Mat

#5 2BrightSparks

2BrightSparks
  • Members
  • 44 posts
  • Gender:
    Male

Posted 24 October 2006 - 02:30 AM

Hi, I've sent you the login details via private message.

#6 mb

mb

    Developer

  • Administrators
  • 11525 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 24 October 2006 - 02:39 AM

Thank you.

As I guessed in my previous post the bug is with the FTP server. It returns the wrong information for the very first MLSD listing:

TYPE=file;SIZE=5;MODIFY=20061023035041;PERM=rwafd;UNIX.MODE=rw-r--r--; test1.txt
TYPE=file;SIZE=5;MODIFY=20061023075034;PERM=rwafd;UNIX.MODE=rw-r--r--; test2.txt

Regards,
-Mat

#7 Aokromes

Aokromes

    Entity From Outer Space

  • Root Admin
  • 1519 posts
  • Gender:
    Male
  • Location:
    Vitoria-Gasteiz Beyond Stargate Network ;)

Posted 24 October 2006 - 03:35 AM

Btw, it looks that the last build of that ftp server is 1.122 if you can update it, or ask to update, get it from: http://www.cpan.org/...er-1.122.tar.gz if that don't fixes the bug, you also can try reporting bug here: http://lists.nongnu....pserver-general

#8 2BrightSparks

2BrightSparks
  • Members
  • 44 posts
  • Gender:
    Male

Posted 24 October 2006 - 04:27 AM

Thank you.

As I guessed in my previous post the bug is with the FTP server. It returns the wrong information for the very first MLSD listing:

TYPE=file;SIZE=5;MODIFY=20061023035041;PERM=rwafd;UNIX.MODE=rw-r--r--; test1.txt
TYPE=file;SIZE=5;MODIFY=20061023075034;PERM=rwafd;UNIX.MODE=rw-r--r--; test2.txt

Regards,
-Mat

Hi, thanks, luckily the bug in the FTP server is only in MLSD and not LIST (which they can now use until their hoster updates/fixes the FTP server).




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users