commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. Baier (JIRA)" <>
Subject [jira] [Commented] (VFS-618) sftp consumes channels on each cd when directory does not exist
Date Thu, 11 Aug 2016 08:35:20 GMT


J. Baier commented on VFS-618:

Here is the stack trace with 2.1:
org.apache.commons.vfs2.FileSystemException: Could not read from "sftp://user:***@"
because it is not a file.
	at org.apache.commons.vfs2.provider.sftp.SftpFileObject.doGetInputStream(
	at org.apache.commons.vfs2.provider.AbstractFileObject.getInputStream(
	at org.apache.commons.vfs2.provider.DefaultFileContent.getInputStream(

> sftp consumes channels on each cd when directory does not exist
> ---------------------------------------------------------------
>                 Key: VFS-618
>                 URL:
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: all platforms
>            Reporter: J. Baier
>   Original Estimate: 1h
>  Remaining Estimate: 1h
> While resolving a FileObject on an sftp target for a directory that does not exist on
the target, SftpFileSystem.getChannel() is called and while trying to cd to the workingDirectory,
an SftpException is thrown but the channel object is not released.
> This leads to many sftp channels kept opoen on the target system and consumes unnecessary
> A simple patch of releasing the channel in the caught SftpException in SftpFileSystem
line 125 would solve this issue.

This message was sent by Atlassian JIRA

View raw message