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

This forum is not monitored by the SmartFTP staff. If you have a license please contact technical support by email.
Post Reply
2BrightSparks
Posts: 44
Joined: Thu Feb 23, 2006 5:41 am

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

Post by 2BrightSparks » Mon Oct 23, 2006 8: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

mb
Posts: 12026
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

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

Post by mb » Mon Oct 23, 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

2BrightSparks
Posts: 44
Joined: Thu Feb 23, 2006 5:41 am

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

Post by 2BrightSparks » Mon Oct 23, 2006 9:35 pm

Last edited by 2BrightSparks on Mon Oct 23, 2006 9:37 pm, edited 1 time in total.

mb
Posts: 12026
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

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

Post by mb » Tue Oct 24, 2006 1: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
Last edited by mb on Tue Oct 24, 2006 1:32 am, edited 1 time in total.

2BrightSparks
Posts: 44
Joined: Thu Feb 23, 2006 5:41 am

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

Post by 2BrightSparks » Tue Oct 24, 2006 2:30 am

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

mb
Posts: 12026
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

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

Post by mb » Tue Oct 24, 2006 2: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

Aokromes
Posts: 1519
Joined: Wed Jun 05, 2002 9:37 am

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

Post by Aokromes » Tue Oct 24, 2006 3: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/modules/by-authors/ ... 122.tar.gz if that don't fixes the bug, you also can try reporting bug here: http://lists.nongnu.org/mailman/listinf ... er-general

2BrightSparks
Posts: 44
Joined: Thu Feb 23, 2006 5:41 am

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

Post by 2BrightSparks » Tue Oct 24, 2006 4: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).

Post Reply