You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "lucas theisen (JIRA)" <ji...@apache.org> on 2013/11/29 02:35:35 UTC

[jira] [Created] (DIRMINA-975) DefaultSftpClient hangs on call to mkdir

lucas theisen created DIRMINA-975:
-------------------------------------

             Summary: DefaultSftpClient hangs on call to mkdir
                 Key: DIRMINA-975
                 URL: https://issues.apache.org/jira/browse/DIRMINA-975
             Project: MINA
          Issue Type: New Feature
          Components: Core
    Affects Versions: 0.9.0
         Environment: CYGWIN_NT-6.1 ljt530 1.7.25(0.270/5/3) 2013-08-31 20:37 x86_64 Cygwin

            Reporter: lucas theisen


This unit test fails when using a local cygwin sshd:

{code:java}
    @Test
    public void testClient() throws Exception {
        final String hostname = "localhost";
        final int port = 22;
        final String username = "myuser";
        final String password = "mypass";

        SshClient client = SshClient.setUpDefaultClient();
        client.start();
        ClientSession session = client.connect( hostname, port ).await().getSession();
        session.authPassword( username, password ).await();

        deleteRecursive( new File( "target/sftp" ) );
        new File( "target/sftp" ).mkdirs();
        new File( "target/sftp/client/test.txt" ).delete();
        new File( "target/sftp/client" ).delete();

        SftpClient sftp = session.createSftpClient();

        sftp.mkdir( "target/sftp/client" );
    }
{code}

The call to mkdir hangs indefinitely.

{code}
2013-11-28 20:31:47,489 | INFO  | main             | SecurityUtils                    | org.apache.sshd.common.util.SecurityUtils                          80 | BouncyCastle not registered, using the default JCE provider
2013-11-28 20:31:47,859 | INFO  | pool-2-thread-1  | ClientSessionImpl                | org.apache.sshd.client.session.ClientSessionImpl                   86 | Session created...
2013-11-28 20:31:48,063 | INFO  | pool-2-thread-4  | ClientSessionImpl                | org.apache.sshd.client.session.ClientSessionImpl                  515 | Server version string: SSH-2.0-OpenSSH_6.2
2013-11-28 20:31:48,150 | INFO  | pool-2-thread-5  | ClientSessionImpl                | org.apache.sshd.client.session.ClientSessionImpl                  329 | Received SSH_MSG_KEXINIT
2013-11-28 20:31:48,172 | INFO  | pool-2-thread-5  | DHG1                             | org.apache.sshd.client.kex.AbstractDHGClient                       78 | Send SSH_MSG_KEXDH_INIT
2013-11-28 20:31:48,181 | INFO  | pool-2-thread-3  | DHG1                             | org.apache.sshd.client.kex.AbstractDHGClient                       93 | Received SSH_MSG_KEXDH_REPLY
2013-11-28 20:31:48,195 | WARN  | pool-2-thread-3  | AcceptAllServerKeyVerifier       | org.apache.sshd.client.keyverifier.AcceptAllServerKeyVerifier      45 | Server at localhost/127.0.0.1:22 presented unverified key: 
2013-11-28 20:31:48,196 | INFO  | pool-2-thread-3  | ClientSessionImpl                | org.apache.sshd.client.session.ClientSessionImpl                  349 | Received SSH_MSG_NEWKEYS
2013-11-28 20:31:48,201 | INFO  | pool-2-thread-3  | ClientSessionImpl                | org.apache.sshd.client.session.ClientSessionImpl                  548 | Send SSH_MSG_SERVICE_REQUEST for ssh-userauth
2013-11-28 20:31:48,204 | INFO  | main             | UserAuthPassword                 | org.apache.sshd.client.auth.UserAuthPassword                       48 | Send SSH_MSG_USERAUTH_REQUEST for password
2013-11-28 20:31:48,218 | INFO  | pool-2-thread-1  | UserAuthPassword                 | org.apache.sshd.client.auth.UserAuthPassword                       59 | Received SSH_MSG_USERAUTH_SUCCESS
2013-11-28 20:31:48,247 | INFO  | main             | ChannelSubsystem                 | org.apache.sshd.client.channel.AbstractClientChannel              186 | Send SSH_MSG_CHANNEL_OPEN on channel 101
2013-11-28 20:31:48,250 | INFO  | pool-2-thread-3  | ChannelSubsystem                 | org.apache.sshd.client.channel.ChannelSubsystem                    43 | Send SSH_MSG_CHANNEL_REQUEST exec
2013-11-28 20:31:48,499 | INFO  | pool-2-thread-2  | ChannelSubsystem                 | org.apache.sshd.client.channel.AbstractClientChannel              254 | Received SSH_MSG_CHANNEL_REQUEST on channel 101

HANGS HERE...
{code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)