commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marnix Kammer (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NET-407) Change lenientFutureDates to default to true
Date Tue, 02 May 2017 08:49:04 GMT

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

Marnix Kammer commented on NET-407:
-----------------------------------

The JavaDoc of FTPClientConfig#setLenientFutureDates has not been modified to reflect this
improvement - it still says that false is the default value of lenientFutureDates.

> Change lenientFutureDates to default to true
> --------------------------------------------
>
>                 Key: NET-407
>                 URL: https://issues.apache.org/jira/browse/NET-407
>             Project: Commons Net
>          Issue Type: Improvement
>          Components: FTP
>    Affects Versions: 2.2
>            Reporter: Sebb
>             Fix For: 3.0
>
>
> [See http://mail-archives.apache.org/mod_mbox/commons-dev/201105.mbox/%3CBANLkTi=b9kg-KpTGtHo2Op4cUt2dT1HTig@mail.gmail.com%3E]
> NET-83 added an option to allow dates to be up to 1 day in the future, but this is not
the default.
> This means that FTP will assume the wrong year when listing recent files which are on
servers with a clock which is ahead of the client.
> This includes servers in a different timezone (unless the user specifies the server timezone)
- e.g. client in US listing files on a server in the UK.
> As far as I can tell, Unix servers use short dates for dates within about +/- 6 months
of the current date, so this should not cause any
> problems. But of course it is possible that some servers use short dates for past dates
only.
> The behaviour of FTP parsing is likely to be improved overall by changing the default
to allow dates up to 1 day into the future.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message