1. FtpServer
  2. FTPSERVER-232

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


    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0-M4
    • Fix Version/s: 1.0.0-RC1
    • Component/s: Core
    • Labels:


      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.


        Sai Pullabhotla created issue -
        David Latorre made changes -
        Field Original Value New Value
        Assignee David Latorre [ dlatorre ]
        Fix Version/s 1.0.0-RC1 [ 12313542 ]
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.0.0-M4 [ 12313395 ]
        Niklas Gustavsson made changes -
        Affects Version/s 1.0.0-M4 [ 12313395 ]
        Affects Version/s 1.0.0-M3 [ 12313104 ]
        Niklas Gustavsson made changes -
        Status Resolved [ 5 ] Reopened [ 4 ]
        Resolution Fixed [ 1 ]
        Niklas Gustavsson made changes -
        Resolution Fixed [ 1 ]
        Status Reopened [ 4 ] Closed [ 6 ]


          • Assignee:
            David Latorre
            Sai Pullabhotla
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: