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

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

JIRA jira@apache.org
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.

Reply | Threaded
Open this post in threaded view
|

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

JIRA jira@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.

Reply | Threaded
Open this post in threaded view
|

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

JIRA jira@apache.org
In reply to this post by JIRA jira@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.