You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2008/04/07 03:46:24 UTC

[jira] Created: (NET-212) FTP short date parsing - how to handle future dates

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: 1.5, 2.0
            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.


[jira] Updated: (NET-212) FTP short date parsing - how to handle future dates

Posted by "Sebb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/NET-212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb updated NET-212:
---------------------

    Component/s: FTP

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


[jira] Commented: (NET-212) FTP short date parsing - how to handle future dates

Posted by "Gilles Gaillard (JIRA)" <ji...@apache.org>.
    [ 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.