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 38DD59F0E for ; Sat, 17 Mar 2012 14:11:59 +0000 (UTC) Received: (qmail 86194 invoked by uid 500); 17 Mar 2012 14:11:58 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 85893 invoked by uid 500); 17 Mar 2012 14:11:58 -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 85885 invoked by uid 99); 17 Mar 2012 14:11:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Mar 2012 14:11:58 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Mar 2012 14:11:57 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9A21324060 for ; Sat, 17 Mar 2012 14:11:37 +0000 (UTC) Date: Sat, 17 Mar 2012 14:11:37 +0000 (UTC) From: "Shane Witbeck (Updated) (JIRA)" To: issues@commons.apache.org Message-ID: <1137576313.28166.1331993497632.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1718268174.27102.1331944479778.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (NET-454) paths with spaces result in inaccurate file information MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/NET-454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shane Witbeck updated NET-454: ------------------------------ Attachment: FTPClientTest.java > paths with spaces result in inaccurate file information > ------------------------------------------------------- > > Key: NET-454 > URL: https://issues.apache.org/jira/browse/NET-454 > Project: Commons Net > Issue Type: Bug > Components: FTP > Affects Versions: 3.0.1, 3.1 > Environment: Mac OS X 10.7.3, FTP server is Pure-FTPd on Linux CentOS 5 > Reporter: Shane Witbeck > Labels: ftp, path > Attachments: FTPClientTest.java > > > Calling FTPClient.listFiles(String pathname) results in an inaccurate file list being returned. The following test illustrates the issue: > {code:java} > @Test > public void remoteListFilesFailure() throws Exception { > FTPClient client = new FTPClient(); > client.connect(REMOTE_SERVER); > client.enterLocalPassiveMode(); > client.login(REMOTE_USERNAME, REMOTE_PASSWORD); > client.setFileType(FTP.BINARY_FILE_TYPE); > int reply = client.getReplyCode(); > if (!FTPReply.isPositiveCompletion(reply)) { > client.disconnect(); > log.error("FTP server refused connection. reply=" + reply); > } > FTPFile[] rootFiles = client.listFiles("78/1295213/0/476312ca9c653ffc6cc8fb6e1649dae6/ModComp PO # 1054.pdf"); > Assert.assertEquals(1, rootFiles.length); // <-- fails with rootFiles.length = 0 > } > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira