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 2B97F10E1C for ; Wed, 31 Dec 2014 05:52:13 +0000 (UTC) Received: (qmail 11311 invoked by uid 500); 31 Dec 2014 05:52:13 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 11213 invoked by uid 500); 31 Dec 2014 05:52: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 11201 invoked by uid 99); 31 Dec 2014 05:52:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Dec 2014 05:52:13 +0000 Date: Wed, 31 Dec 2014 05:52:13 +0000 (UTC) From: "Bernd Eckenfels (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (VFS-382) SFTP getChildren() does not fail when called on a file 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/VFS-382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bernd Eckenfels updated VFS-382: -------------------------------- Fix Version/s: (was: Nightly Builds) 2.1 > SFTP getChildren() does not fail when called on a file > ------------------------------------------------------ > > Key: VFS-382 > URL: https://issues.apache.org/jira/browse/VFS-382 > Project: Commons VFS > Issue Type: Bug > Affects Versions: Nightly Builds > Environment: Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500) > Maven home: C:\Java\apache-maven-3.0.3\bin\.. > Java version: 1.6.0_29, vendor: Sun Microsystems Inc. > Java home: C:\Program Files\Java\jdk1.6.0_29\jre > Default locale: en_US, platform encoding: Cp1252 > OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows" > Reporter: Gary Gregory > Assignee: Gary Gregory > Fix For: 2.1 > > Attachments: vfs-382.diff > > > SFTP test testChildren(org.apache.commons.vfs2.test.ContentTests) fails > I've tried this with *Apache SSHd* and *Bitvise WinSSHD* and I get the same failure. > The test {{org.apache.commons.vfs2.test.ContentTests}} asks for the children ({{getChildren()}}) of a {{file1.txt}} file (not a folder) and does not fail. > The test expects the {{getChildren()}} method to throw an exception. > Instead, it returns one file, file1.txt itself. > Under the covers, we do a "ls file1.txt", which returns "file1.txt". > It looks like [VFS-210] was an effort to optimize and reduce roundtrips but it may have broken this code. > Thoughts on fixing this? > In {{org.apache.commons.vfs2.provider.sftp.SftpFileObject.doListChildrenResolved()}}? -- This message was sent by Atlassian JIRA (v6.3.4#6332)