Uploaded image for project: 'FtpServer'
  1. FtpServer
  2. FTPSERVER-232

MFMT command always returns a 2XX reply even if the date could not be set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0-M4
    • 1.0.0-RC1
    • Core
    • None

    Description

      MFMT command always returns a 2XX reply even if the date could not be set.

      MFMT Command should return a Positive Completion Reply if and only if we are sure that the date on the file was modified. In order to fix this, we need to make use of the return value from java.io.File.setLastModified(long). We are not using the returned boolean from this method and assuming that the new date was set. Code needs to be changed in a few places to fix this. The issue can be reproduced by trying to set the date on a file that is in use. I used a .doc file, had it open in MS Word and ran the MFMT command and got the 213 reply, but the date on the file was not changed.

      Attachments

        Activity

          People

            dlatorre David Latorre
            psai Sai Pullabhotla
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: