Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2D3913514 for ; Fri, 6 May 2011 08:48:40 +0000 (UTC) Received: (qmail 28307 invoked by uid 500); 6 May 2011 08:48:39 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 28258 invoked by uid 500); 6 May 2011 08:48:39 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 28251 invoked by uid 99); 6 May 2011 08:48:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 May 2011 08:48:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 May 2011 08:48:37 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id B6A7F2388A38; Fri, 6 May 2011 08:48:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@commons.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110506084815.B6A7F2388A38@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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. "> + + 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. + FTPSSocketFactory does not override createSocket(); causes java.net.SocketException: Unconnected sockets not implemented. 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;