commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles Gaillard (JIRA)" <j...@apache.org>
Subject [jira] Commented: (NET-212) FTP short date parsing - how to handle future dates
Date Mon, 18 May 2009 07:38:45 GMT

    [ https://issues.apache.org/jira/browse/NET-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12710296#action_12710296
] 

Gilles Gaillard commented on NET-212:
-------------------------------------

In the current implementation, (I find) the default behavior is highly confusing:
- have a server which is 2 minutes in the future of the client
- upload some file and get its last modified time: it seems to be one year old
- wait 2 minutes: its correct last modified time is returned

To change that, I need to create an {{FTPClientConfig}} and configure the client. 
On the other hand, if I want to keep on using the parser autodetected by calling the {{SYST}}
command, there is no simple way to set the {{lenientFutureDates}} of the {{FTPTimestampParserImpl}}.


> FTP short date parsing - how to handle future dates
> ---------------------------------------------------
>
>                 Key: NET-212
>                 URL: https://issues.apache.org/jira/browse/NET-212
>             Project: Commons Net
>          Issue Type: Bug
>    Affects Versions: 2.0, 1.5
>            Reporter: Sebb
>
> See NET-188 for history.
> Need to decide how to handle short dates (without years).
> Should this be:
> +/- 6 months?
> +1 day/-364 days?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message