Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 73045EE14 for ; Wed, 23 Jan 2013 19:49:13 +0000 (UTC) Received: (qmail 86838 invoked by uid 500); 23 Jan 2013 19:49:13 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 86745 invoked by uid 500); 23 Jan 2013 19:49:13 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 86665 invoked by uid 99); 23 Jan 2013 19:49:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jan 2013 19:49:13 +0000 Date: Wed, 23 Jan 2013 19:49:12 +0000 (UTC) From: "Sebb (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (NET-496) Util copyReader/copyStream classes should use default buffer size for non-positive buffer size parameters MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/NET-496?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sebb resolved NET-496. ---------------------- Resolution: Fixed Fix Version/s: 3.3 URL: http://svn.apache.org/viewvc?rev=1437653&view=rev Log: NET-496 Util copyReader/copyStream classes should use default buffer size for non-positive buffer size parameters Modified: commons/proper/net/trunk/src/changes/changes.xml commons/proper/net/trunk/src/main/java/org/apache/commons/net/io/Util.java URL: http://svn.apache.org/viewvc?rev=1437659&view=rev Log: Simplify, in light of NET-496 Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java > Util copyReader/copyStream classes should use default buffer size for non-positive buffer size parameters > --------------------------------------------------------------------------------------------------------- > > Key: NET-496 > URL: https://issues.apache.org/jira/browse/NET-496 > Project: Commons Net > Issue Type: Improvement > Reporter: Sebb > Fix For: 3.3 > > > The Util copyStream and copyReader methods currently fail if the provided bufferSize is not positive. > It would be more useful to use the default buffer size in such cases. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira