Aborting an FtpInputStream leads to exceptions (NPE..) with the underlying 
FTPClient
------------------------------------------------------------------------------------

                 Key: VFS-214
                 URL: https://issues.apache.org/jira/browse/VFS-214
             Project: Commons VFS
          Issue Type: Bug
            Reporter: Gilles Gaillard
            Priority: Trivial


In FtpFileObject.FtpInputStream the method abort has the following 
implementation:

  client.abort();
  close();

The first call to client.abort() disconnects the client which closes all 
streams and sockets.
Then 'close' tries to call client.completePendingCommand() therefore resulting 
in errors like NPE in the FTPClient.
This result in FTP unit tests running with errors.

Calling close first, then client.abort seems to resolve the issue and fix these 
errors in unit tests.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to