Author: sebb Date: Fri Apr 15 19:07:04 2016 New Revision: 1739351 URL: http://svn.apache.org/viewvc?rev=1739351&view=rev Log: NET-583 FTPClient.getReplyString() returns wrong value after connect()
Modified: commons/proper/net/trunk/src/changes/changes.xml commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java Modified: commons/proper/net/trunk/src/changes/changes.xml URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/changes/changes.xml?rev=1739351&r1=1739350&r2=1739351&view=diff ============================================================================== --- commons/proper/net/trunk/src/changes/changes.xml [utf-8] (original) +++ commons/proper/net/trunk/src/changes/changes.xml [utf-8] Fri Apr 15 19:07:04 2016 @@ -74,6 +74,9 @@ This is mainly a bug-fix release. See fu Notable additions: The IMAP examples can now get password from console, stdin or an environment variable. "> + <action issue="NET-583" type="fix" dev="sebb" due-to="Holger Rehn"> + FTPClient.getReplyString() returns wrong value after connect() + </action> <action type="add" dev="sebb"> Alternative password input methods for IMAP examples </action> Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java?rev=1739351&r1=1739350&r2=1739351&view=diff ============================================================================== --- commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java (original) +++ commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java Fri Apr 15 19:07:04 2016 @@ -983,6 +983,7 @@ implements Configurable _replyLines.clear(); _replyLines.addAll(oldReplyLines); _replyCode = oldReplyCode; + _newReplyString = true; } }