commons-issues mailing list archives

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


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:
>             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.

View raw message