You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Luke Wood (Jira)" <ji...@apache.org> on 2022/01/31 16:43:00 UTC

[jira] [Created] (VFS-814) FtpFileObject: re-fetch MDTM after refresh

Luke Wood created VFS-814:
-----------------------------

             Summary: FtpFileObject: re-fetch MDTM after refresh
                 Key: VFS-814
                 URL: https://issues.apache.org/jira/browse/VFS-814
             Project: Commons VFS
          Issue Type: Bug
    Affects Versions: 2.9.0, 2.8.0
            Reporter: Luke Wood


{{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 {{mdtm = false}} to {{FtpFileObject.doDetach()}}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)