Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-814

FtpFileObject: re-fetch MDTM after refresh

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.8.0, 2.9.0
    • 2.10.0
    • Patch

    Description

      FtpFileObject.getTimestampMillis stores last modification time using FTPFile.setTimestamp.

      doDetach() nulls out the underling FTPFile, but doesn't set mdtmSet = false this means later calls to FtpFileObject.getTimestampMillis fail to refresh mdtm and default to LIST timestamp.

      Suggested fix:

      Add mdtmSet = false to FtpFileObject.doDetach()

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lukewpc Luke Wood
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: