Page 1 of 1

729: FTP SetFile Timestamp not possible

Posted: 03.10.2016, 15:46
by KRotte
Hello,
I have a QNAP Nas with built-in ProFTP.

When i try to upload a file and check "Preserve file/folder timestamp" i get an error "SetFileTimestamp: 550 20160726203924 PremiumVoucher.pdf: No such file or directory".
In my FTP-log i can see the message "MDTM 20160726203924 PremiumVoucher.pdf 550".
When i do the same with Filezilla i see "MFMT 20160726183924 PremiumVoucher.pdf 213".
I think MDTM is the wrong command. It is used to return the last-modified time of a specified file and not to set the last-modified time. To set the time FC should use MFMT, which ProFTP understands.

See http://www.proftpd.org/docs/howto/FTP.html
MDTM
Short for MoDification TiMe, this command is used by the client to request the modification time of a file on the server. This command is defined formally in RFC 3659, and is a commonly implemented FTP command. Note that this command cannot be used to change the modification time of the file on the server; it only reports on the file's modification time. The MFMT command is used to change a file's modification time.

MFMT
Short for Modify Fact: Last Modified Time, supported by mod_facts. Some clients use this command to change the last modified timestamp on a newly uploaded file so that the timestamp on the server matches the timestamp of that file on the client.

Regards
K.Rotte

Re: 729: FTP SetFile Timestamp not possible

Posted: 03.10.2016, 16:33
by Marek
Thanks for the explanation.
Changed to MFMT now.
Could I maybe test it with your FTP Server?

Re: 729: FTP SetFile Timestamp not possible

Posted: 03.10.2016, 17:33
by Marek
OK, I have found ftp server for testing MFMT and it works now.

Re: 729: FTP SetFile Timestamp not possible

Posted: 03.10.2016, 17:54
by KRotte
I´ve tested it with the FTP on my QNAP Nas.

When will this be available? In the next donor-release?

Re: 729: FTP SetFile Timestamp not possible

Posted: 03.10.2016, 18:10
by Marek
Yes, release 730.