Go Back   FlashFXP Forums > >

Project: FlashFXP Bug Reports Ticket Tools
ID: 425 Category: General / Unknown
Title: MDTM Support ? Status: Closed (Not a bug)
Severity: Minor Version: 4.0

Junior Member
JGOe2s
12-28-2010, 10:37 AM
MDTM Support ?

[R] CWD temp
[R] 250 CWD command successful
[R] PWD
[R] 257 "/temp" is the current directory
[R] PASV
[R] 227 Entering Passive Mode (89,31,100,121,169,162).
[R] Opening data connection IP: 89.31.100.121 PORT: 43426
[R] LIST -al
[R] 150 Opening ASCII mode data connection for file list
[R] 226 Transfer complete
[R] List Complete: 4 KB in 0,10 seconds (42,6 KB/s)
[R] Calculating timezone offset of server...
[R] MDTM 1jan.zip
[R] 213 20101216152834
[R] Timezone offsets: Server: -34 seconds. Local: 3600 seconds. Difference: 3634 seconds.
[R] TYPE I
[R] 200 Type set to I
[R] SIZE STD-Computers-2K3WORKSTATION-20091011-72118.xml
[R] 550 STD-Computers-2K3WORKSTATION-20091011-72118.xml: No such file or directory
[R] PASV
[R] 227 Entering Passive Mode (89,31,100,121,152,11).
[R] Opening data connection IP: 89.31.100.121 PORT: 38923
[R] STOR STD-Computers-2K3WORKSTATION-20091011-72118.xml
[R] 150 Opening BINARY mode data connection for STD-Computers-2K3WORKSTATION-20091011-72118.xml
[R] 226 Transfer complete
[R] MDTM 20091011180200 STD-Computers-2K3WORKSTATION-20091011-72118.xml
[R] 550 20091011180200 STD-Computers-2K3WORKSTATION-20091011-72118.xml: No such file or directory
[R] SITE UTIME STD-Computers-2K3WORKSTATION-20091011-72118.xml 20091011180200 20091011180200 20091011180200 UTC
[R] 500 'SITE UTIME' not understood
Transferred: STD-Computers-2K3WORKSTATION-20091011-72118.xml 907 bytes in 0,08 seconds (11,8 KB/s)
[R] TYPE A
[R] 200 Type set to A
[R] PASV
[R] 227 Entering Passive Mode (89,31,100,121,186,231).
[R] Opening data connection IP: 89.31.100.121 PORT: 47847
[R] LIST -al
[R] 150 Opening ASCII mode data connection for file list
[R] 226 Transfer complete
[R] List Complete: 4 KB in 0,12 seconds (35,6 KB/s)
Transfer queue completed
Transferred 1 File (907 bytes) in 0,35 seconds (11,8 KB/s)
[R] MDTM STD-Computers-2K3WORKSTATION-20091011-72118.xml
[R] 213 20101228151307

Why is FlashFXP sending MDTM 20091011180200 STD-Computers-2K3WORKSTATION-20091011-72118.xml and not MDTM STD-Computers-2K3WORKSTATION-20091011-72118.xml on upload ?
As far as I know the right syntax is MDTM filename ?

If not , proftpd and some other ftp servers don't seem to support this at all...


EDIT: Just did read RFC, this should be wrong:

http://tools.ietf.org/html/rfc3659#section-3.1

See examples and read comment at end:

There is no file named "E" in the current directory, but there are
files named both "file6" and "19990929043300 File6". The
modification times of those files were obtained. There is no file
named "19990929043300 file6".
FlashFXP Developer
bigstar
12-28-2010, 11:23 AM
Re: MDTM Support ?

The FTP server doesn't support setting the file date/time.

FlashFXP will automatically set the date/time on upload but some FTP servers do not support this method, for these servers you'll need to edit the "File Transfer Rules" and uncheck preserve file date/time on upload.

MDTM was extended on several FTP servers to support not only getting but also setting the date/time. There is no official standard for setting the date/time remotely so FlashFXP attempts several different methods.

ProFTPD does not support setting the date/time via MDTM
http://www.proftpd.org/docs/howto/Timestamps.html

If the FTP server doesn't support preserving the file date/time then the File Transfer Rules for uploads will not accurately handle compare by date/time.
Junior Member
JGOe2s
12-28-2010, 12:22 PM
Re: MDTM Support ?

I dont see this in the RFC, in that case I would not support it all. The command you're probably want is MFMT which supports the syntax you're using (and is AFAIK the opposite of MDTM ! ) It is supported by proftpd and a lot of others as well.

An alternative is the SITE UTIME (which you do support as well), I know ftp deamons which support MFMT and SITE UTIME.
So I can't see a valid reason to support something that is probably introduced by a wrong interpretation of the RFC. Supporting this only makes incompatibility for long term worse, something that should be avoided at all cost.
FlashFXP Developer
bigstar
12-28-2010, 02:43 PM
Re: MDTM Support ?

FlashFXP does support MFMT and it is supported by proftpd but only if mod_facts is installed. Assuming that the mod includes MFMT in the FEAT command list. I have not seen any proftpd servers that actually use mod_facts.

ProFTPD 1.3.3c does support MDTM. I just confirmed on my test server.

In addition MFMT is a draft not a RFC, it is my understanding that many FTP servers have not adopted this method.

MDTM is more widely used compared to MFMT based on the research I've done.

The problem with MDTM and SITE UTIME is that the sites that do support them do not indicate it in the FEAT reply so the command must be sent regardless.

If the FTP server doesn't support any method of setting the remote file date/time then this feature can be disabled, there is no disadvantage to having it enabled, other than the extra commands being sent to the server.
Junior Member
JGOe2s
12-28-2010, 04:54 PM
Re: MDTM Support ?

I wonder which ftp servers use the MDTM to set the time/date
FlashFXP Developer
bigstar
12-28-2010, 07:33 PM
Re: MDTM Support ?

off the top of my head, ioftpd, proftpd, serv-u, gene6, crushftpd
Junior Member
JGOe2s
12-29-2010, 05:27 AM
Re: MDTM Support ?

To SET the time and date ? Proftpd to start with not all AFAIK.
FlashFXP Developer
bigstar
12-29-2010, 09:39 AM
Re: MDTM Support ?

I'm not sure when support was added in proftpd, I just know it works in the latest version.
Ticket Tools
Subscribe to this Ticket


Posting Rules
You may not post new tickets

Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -5. The time now is 01:31 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)