commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1100132 - in /commons/proper/net/trunk: RELEASE-NOTES.txt src/changes/changes.xml src/main/java/org/apache/commons/net/ftp/FTPClientConfig.java
Date Fri, 06 May 2011 08:48:15 GMT
Author: sebb
Date: Fri May  6 08:48:15 2011
New Revision: 1100132

URL: http://svn.apache.org/viewvc?rev=1100132&view=rev
Log:
NET-407 Change lenientFutureDates to default to true

Modified:
    commons/proper/net/trunk/RELEASE-NOTES.txt
    commons/proper/net/trunk/src/changes/changes.xml
    commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClientConfig.java

Modified: commons/proper/net/trunk/RELEASE-NOTES.txt
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/RELEASE-NOTES.txt?rev=1100132&r1=1100131&r2=1100132&view=diff
==============================================================================
--- commons/proper/net/trunk/RELEASE-NOTES.txt (original)
+++ commons/proper/net/trunk/RELEASE-NOTES.txt Fri May  6 08:48:15 2011
@@ -12,6 +12,7 @@ This release fixes many bugs (see below)
 
 
 FTP changes:
+ - default for lenient future dates is now true, which fixes short date parsing where host
clock is ahead of client clock
  - no longer parses every response line twice
  - OS auto-detection can be overriden by defining the property 'org.apache.commons.net.ftp.systemType';
  - or by creating a properties file '/systemType.properties' which provides a mapping from
getSystemType() to parser name
@@ -110,6 +111,8 @@ o NET-359:  CopyStreamAdapter unconditio
 o NET-355:  examples.nntp.NNTPUtils does not compile 
 
 Changes:
+o NET-407:  Change lenientFutureDates to default to true.
+            This means short dates will be parsed as the current year when the host clock
is up to 1 day ahead of the client clock. 
 o NET-400:  Option to override SSL negotiation. Make FTPSClient#execAuth() and FTPSClient#sslNegotiation()
protected Thanks to David Kocher. 
 o NET-331:  AS400 file timestamp format is wrong. Workround exists. 
 o NET-269:  Remove semi-redundant check in SubnetUtils.calculate(). 

Modified: commons/proper/net/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/changes/changes.xml?rev=1100132&r1=1100131&r2=1100132&view=diff
==============================================================================
--- commons/proper/net/trunk/src/changes/changes.xml (original)
+++ commons/proper/net/trunk/src/changes/changes.xml Fri May  6 08:48:15 2011
@@ -62,6 +62,7 @@ This release fixes many bugs (see below)
   - support for SMTPS and POP3S
 
     FTP changes:
+  - default for lenient future dates is now true, which fixes short date parsing where host
clock is ahead of client clock
   - no longer parses every response line twice
   - OS auto-detection can be overriden by defining the property 'org.apache.commons.net.ftp.systemType';
   - or by creating a properties file '/systemType.properties' which provides a mapping from
getSystemType() to parser name
@@ -85,6 +86,10 @@ KeyManagerUtils can be used to provide c
 
   All users are recommended to upgrade.
 ">
+            <action issue="NET-407" dev="sebb" type="update">
+            Change lenientFutureDates to default to true.
+            This means short dates will be parsed as the current year when the host clock
is up to 1 day ahead of the client clock.
+            </action>
             <action issue="NET-404" dev="sebb" type="fix">
             FTPSSocketFactory does not override createSocket(); causes java.net.SocketException:
Unconnected sockets not implemented.
             </action>

Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClientConfig.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClientConfig.java?rev=1100132&r1=1100131&r2=1100132&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClientConfig.java
(original)
+++ commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClientConfig.java
Fri May  6 08:48:15 2011
@@ -208,7 +208,7 @@ public class FTPClientConfig
     private final String serverSystemKey;
     private String defaultDateFormatStr = null;
     private String recentDateFormatStr = null;
-    private boolean lenientFutureDates = false;
+    private boolean lenientFutureDates = true; // NET-407
     private String serverLanguageCode = null;
     private String shortMonthNames = null;
     private String serverTimeZoneId = null;



Mime
View raw message