You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/02/14 15:29:00 UTC

[jira] [Work logged] (VFS-257) FTP: Add support for MDTM to get more accurate last modified times

     [ https://issues.apache.org/jira/browse/VFS-257?focusedWorklogId=387427&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-387427 ]

ASF GitHub Bot logged work on VFS-257:
--------------------------------------

                Author: ASF GitHub Bot
            Created on: 14/Feb/20 15:28
            Start Date: 14/Feb/20 15:28
    Worklog Time Spent: 10m 
      Work Description: moikeygraham commented on pull request #82: VFS-257 - FTP: Add support for MDTM to get more accurate last modified times
URL: https://github.com/apache/commons-vfs/pull/82
 
 
   Adding support for MDTM command when obtaining a FtpFileObject timestamp.
   
   The patch attached on the original JIRA was quite old, so I started fresh.
   
   Contains two test cases:
   - Server supporting MDTM command
   - Server not supporting MDTM command
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 387427)
    Remaining Estimate: 0h
            Time Spent: 10m

> FTP: Add support for MDTM to get more accurate last modified times
> ------------------------------------------------------------------
>
>                 Key: VFS-257
>                 URL: https://issues.apache.org/jira/browse/VFS-257
>             Project: Commons VFS
>          Issue Type: Improvement
>    Affects Versions: 1.0
>            Reporter: Andrew Franklin
>            Priority: Major
>         Attachments: VFS-257.patch
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The current FTPFileObject implementation delegates to the commons-net FtpFile to get the last modified date. Unfortunately this value is parsed from the result of the LIST command, which suffers from a few issues:
> * NET-212 - LMDs aren't persistable beyond a year as commons-net has to guess the year in many cases, based on the current year.
> * Most FTP parser formats are only accurate to the minute, and sometimes only the nearest day
> * Sometimes the FTP server will change the time format for a single file over time, changing the resulting lmd.
> By using the MDTM command you're able to get a last modified date that's accurate to the second (and sometimes even millisecond) and doesn't suffer from the above issues. As I understand it, the command is implemented in commons-net 2.1?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)