You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by gn...@apache.org on 2020/05/26 09:28:09 UTC

[mina-sshd] branch master updated (d1b5beb -> 35421eb)

This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mina-sshd.git.


    from d1b5beb  [SSHD-989] Add support for parsing PKCS8 encoded ed25519 private key
     add 536d066  Fix SFTP problems
     add 4335de9  Disable some sftp tests on netty
     new 35421eb  Avoid unnecessary cast to AbstractSession

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../common/channel/ChannelAsyncOutputStream.java   | 26 ++++++-----
 .../java/org/apache/sshd/client/ClientTest.java    |  7 ++-
 sshd-sftp/pom.xml                                  |  4 +-
 .../sshd/client/subsystem/sftp/SftpClient.java     | 14 +++---
 .../client/subsystem/sftp/SftpClientFactory.java   |  3 +-
 .../client/subsystem/sftp/fs/SftpFileSystem.java   | 10 ++---
 .../subsystem/sftp/fs/SftpFileSystemProvider.java  | 22 +++++++---
 .../subsystem/sftp/impl/AbstractSftpClient.java    | 15 +++++++
 .../sftp/impl/DefaultSftpClientFactory.java        |  8 +++-
 .../subsystem/sftp/impl/SftpInputStreamAsync.java  |  4 +-
 .../sshd/client/subsystem/sftp/SftpTest.java       |  2 +-
 .../client/subsystem/sftp/SftpTransferTest.java    | 51 +++++++++++++---------
 sshd-sftp/src/test/resources/log4j.properties      |  1 +
 13 files changed, 105 insertions(+), 62 deletions(-)


[mina-sshd] 01/01: Avoid unnecessary cast to AbstractSession

Posted by gn...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mina-sshd.git

commit 35421eba0d46319f2485a6b4054f8821fad7fab4
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Tue May 26 11:27:12 2020 +0200

    Avoid unnecessary cast to AbstractSession
---
 sshd-core/src/test/java/org/apache/sshd/client/ClientTest.java | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/sshd-core/src/test/java/org/apache/sshd/client/ClientTest.java b/sshd-core/src/test/java/org/apache/sshd/client/ClientTest.java
index 7812473..1fcc1ef 100644
--- a/sshd-core/src/test/java/org/apache/sshd/client/ClientTest.java
+++ b/sshd-core/src/test/java/org/apache/sshd/client/ClientTest.java
@@ -1412,15 +1412,14 @@ public class ClientTest extends BaseTestSupport {
                 channel.setErr(err);
                 channel.open().verify(OPEN_TIMEOUT);
 
-                AbstractSession cs = (AbstractSession) session;
-                Buffer buffer = cs.createBuffer(SshConstants.SSH_MSG_DISCONNECT, Integer.SIZE);
+                Buffer buffer = session.createBuffer(SshConstants.SSH_MSG_DISCONNECT, Integer.SIZE);
                 buffer.putInt(SshConstants.SSH2_DISCONNECT_BY_APPLICATION);
                 buffer.putString("Cancel");
                 buffer.putString(""); // TODO add language tag
 
-                IoWriteFuture f = cs.writePacket(buffer);
+                IoWriteFuture f = session.writePacket(buffer);
                 assertTrue("Packet writing not completed in time", f.await(DEFAULT_TIMEOUT));
-                suspend(cs.getIoSession());
+                suspend(session.getIoSession());
 
                 TestEchoShell.latch.await();
             } finally {