Discussion:
[2/9] mina-sshd git commit: Upgraded Netty version to 4.1.30
l***@apache.org
2018-10-04 05:50:15 UTC
Permalink
Upgraded Netty version to 4.1.30


Project: http://git-wip-us.apache.org/repos/asf/mina-sshd/repo
Commit: http://git-wip-us.apache.org/repos/asf/mina-sshd/commit/25e45917
Tree: http://git-wip-us.apache.org/repos/asf/mina-sshd/tree/25e45917
Diff: http://git-wip-us.apache.org/repos/asf/mina-sshd/diff/25e45917

Branch: refs/heads/master
Commit: 25e45917a78b6f600c3fa5c4eb0e4bd55d7e06bb
Parents: a912138
Author: Lyor Goldstein <***@gmail.com>
Authored: Wed Oct 3 20:39:01 2018 +0300
Committer: Goldstein Lyor <***@cb4.com>
Committed: Thu Oct 4 08:50:08 2018 +0300

----------------------------------------------------------------------
sshd-netty/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mina-sshd/blob/25e45917/sshd-netty/pom.xml
----------------------------------------------------------------------
diff --git a/sshd-netty/pom.xml b/sshd-netty/pom.xml
index eb8441b..20cf8d6 100644
--- a/sshd-netty/pom.xml
+++ b/sshd-netty/pom.xml
@@ -35,7 +35,7 @@

<properties>
<projectRoot>${project.basedir}/..</projectRoot>
- <netty.version>4.1.29.Final</netty.version>
+ <netty.version>4.1.30.Final</netty.version>
</properties>

<dependencies>
l***@apache.org
2018-10-04 05:50:16 UTC
Permalink
Upgraded Spring integration version to 5.0.8


Project: http://git-wip-us.apache.org/repos/asf/mina-sshd/repo
Commit: http://git-wip-us.apache.org/repos/asf/mina-sshd/commit/94a61348
Tree: http://git-wip-us.apache.org/repos/asf/mina-sshd/tree/94a61348
Diff: http://git-wip-us.apache.org/repos/asf/mina-sshd/diff/94a61348

Branch: refs/heads/master
Commit: 94a61348dc64b807b2b59833e7e178807f2e3bfd
Parents: 1cb2ace
Author: Lyor Goldstein <***@gmail.com>
Authored: Wed Oct 3 20:34:08 2018 +0300
Committer: Goldstein Lyor <***@cb4.com>
Committed: Thu Oct 4 08:50:08 2018 +0300

----------------------------------------------------------------------
sshd-spring-sftp/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mina-sshd/blob/94a61348/sshd-spring-sftp/pom.xml
----------------------------------------------------------------------
diff --git a/sshd-spring-sftp/pom.xml b/sshd-spring-sftp/pom.xml
index 390838d..46d81f5 100644
--- a/sshd-spring-sftp/pom.xml
+++ b/sshd-spring-sftp/pom.xml
@@ -34,7 +34,7 @@

<properties>
<projectRoot>${project.basedir}/..</projectRoot>
- <spring.integration.version>5.0.7.RELEASE</spring.integration.version>
+ <spring.integration.version>5.0.8.RELEASE</spring.integration.version>
</properties>

<dependencyManagement>
l***@apache.org
2018-10-04 05:50:17 UTC
Permalink
Upgraded PMD version to 6.8.0


Project: http://git-wip-us.apache.org/repos/asf/mina-sshd/repo
Commit: http://git-wip-us.apache.org/repos/asf/mina-sshd/commit/855ff5ad
Tree: http://git-wip-us.apache.org/repos/asf/mina-sshd/tree/855ff5ad
Diff: http://git-wip-us.apache.org/repos/asf/mina-sshd/diff/855ff5ad

Branch: refs/heads/master
Commit: 855ff5ad730bdc344ee1e3e3bf327f9b9aa1cb08
Parents: 8ec4b9c
Author: Lyor Goldstein <***@gmail.com>
Authored: Wed Oct 3 20:32:25 2018 +0300
Committer: Goldstein Lyor <***@cb4.com>
Committed: Thu Oct 4 08:50:08 2018 +0300

----------------------------------------------------------------------
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mina-sshd/blob/855ff5ad/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index ade5019..8541ff6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -120,7 +120,7 @@
<maven.archiver.version>3.2.0</maven.archiver.version>
<plexus.archiver.version>3.6.0</plexus.archiver.version>
<!-- See https://pmd.github.io/ for available latest version -->
- <pmd.version>6.6.0</pmd.version>
+ <pmd.version>6.8.0</pmd.version>
</properties>

<profiles>
l***@apache.org
2018-10-04 05:50:18 UTC
Permalink
Upgraded JGit version to 5.1.1.201809181055-r


Project: http://git-wip-us.apache.org/repos/asf/mina-sshd/repo
Commit: http://git-wip-us.apache.org/repos/asf/mina-sshd/commit/4e91cca2
Tree: http://git-wip-us.apache.org/repos/asf/mina-sshd/tree/4e91cca2
Diff: http://git-wip-us.apache.org/repos/asf/mina-sshd/diff/4e91cca2

Branch: refs/heads/master
Commit: 4e91cca2a655c3e61157b3bbac4f170945f64114
Parents: 94a6134
Author: Lyor Goldstein <***@gmail.com>
Authored: Wed Oct 3 20:35:06 2018 +0300
Committer: Goldstein Lyor <***@cb4.com>
Committed: Thu Oct 4 08:50:08 2018 +0300

----------------------------------------------------------------------
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mina-sshd/blob/4e91cca2/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 517ded7..44d786d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -112,7 +112,7 @@
<bouncycastle.version>1.60</bouncycastle.version>
<slf4j.version>1.7.25</slf4j.version>
<spring.version>5.1.0.RELEASE</spring.version>
- <jgit.version>5.0.2.201807311906-r</jgit.version>
+ <jgit.version>5.1.1.201809181055-r</jgit.version>
<junit.version>4.12</junit.version>
<bytebuddy.version>1.8.17</bytebuddy.version>
l***@apache.org
2018-10-04 05:50:19 UTC
Permalink
Upgraded Spring framework version to 5.1.0


Project: http://git-wip-us.apache.org/repos/asf/mina-sshd/repo
Commit: http://git-wip-us.apache.org/repos/asf/mina-sshd/commit/1cb2ace6
Tree: http://git-wip-us.apache.org/repos/asf/mina-sshd/tree/1cb2ace6
Diff: http://git-wip-us.apache.org/repos/asf/mina-sshd/diff/1cb2ace6

Branch: refs/heads/master
Commit: 1cb2ace685d4bcf4d037fb02748fe59615a628d5
Parents: 855ff5a
Author: Lyor Goldstein <***@gmail.com>
Authored: Wed Oct 3 20:33:24 2018 +0300
Committer: Goldstein Lyor <***@cb4.com>
Committed: Thu Oct 4 08:50:08 2018 +0300

----------------------------------------------------------------------
pom.xml | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mina-sshd/blob/1cb2ace6/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 8541ff6..517ded7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -111,7 +111,7 @@

<bouncycastle.version>1.60</bouncycastle.version>
<slf4j.version>1.7.25</slf4j.version>
- <spring.version>5.0.8.RELEASE</spring.version>
+ <spring.version>5.1.0.RELEASE</spring.version>
<jgit.version>5.0.2.201807311906-r</jgit.version>
<junit.version>4.12</junit.version>
<bytebuddy.version>1.8.17</bytebuddy.version>
@@ -450,6 +450,18 @@

<dependency>
<groupId>org.springframework</groupId>
+ <artifactId>spring-core</artifactId>
+ <version>${spring.version}</version>
+ <exclusions>
+ <!-- We use jcl-over-slf4j -->
+ <exclusion>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-jcl</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
<artifactId>spring-framework-bom</artifactId>
<version>${spring.version}</version>
<type>pom</type>
l***@apache.org
2018-10-04 05:50:20 UTC
Permalink
Upgraded ByteBuddy version to 1.9.0


Project: http://git-wip-us.apache.org/repos/asf/mina-sshd/repo
Commit: http://git-wip-us.apache.org/repos/asf/mina-sshd/commit/074fda20
Tree: http://git-wip-us.apache.org/repos/asf/mina-sshd/tree/074fda20
Diff: http://git-wip-us.apache.org/repos/asf/mina-sshd/diff/074fda20

Branch: refs/heads/master
Commit: 074fda200fdb6463f67903fdd8b322d1d2e347bc
Parents: 4e91cca
Author: Lyor Goldstein <***@gmail.com>
Authored: Wed Oct 3 20:35:48 2018 +0300
Committer: Goldstein Lyor <***@cb4.com>
Committed: Thu Oct 4 08:50:08 2018 +0300

----------------------------------------------------------------------
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mina-sshd/blob/074fda20/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 44d786d..fa75c9d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -114,7 +114,7 @@
<spring.version>5.1.0.RELEASE</spring.version>
<jgit.version>5.1.1.201809181055-r</jgit.version>
<junit.version>4.12</junit.version>
- <bytebuddy.version>1.8.17</bytebuddy.version>
+ <bytebuddy.version>1.9.0</bytebuddy.version>

<surefire.plugin.version>2.22.0</surefire.plugin.version>
<maven.archiver.version>3.2.0</maven.archiver.version>
l***@apache.org
2018-10-04 05:50:22 UTC
Permalink
Upgraded Mockito version to 2.22.0


Project: http://git-wip-us.apache.org/repos/asf/mina-sshd/repo
Commit: http://git-wip-us.apache.org/repos/asf/mina-sshd/commit/a912138f
Tree: http://git-wip-us.apache.org/repos/asf/mina-sshd/tree/a912138f
Diff: http://git-wip-us.apache.org/repos/asf/mina-sshd/diff/a912138f

Branch: refs/heads/master
Commit: a912138f761748bbbb01070856e285ba002e8fa9
Parents: 074fda2
Author: Lyor Goldstein <***@gmail.com>
Authored: Wed Oct 3 20:36:43 2018 +0300
Committer: Goldstein Lyor <***@cb4.com>
Committed: Thu Oct 4 08:50:08 2018 +0300

----------------------------------------------------------------------
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mina-sshd/blob/a912138f/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index fa75c9d..525e2ba 100644
--- a/pom.xml
+++ b/pom.xml
@@ -508,7 +508,7 @@
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
- <version>2.21.0</version>
+ <version>2.22.0</version>
</dependency>
<!-- Used by mockito -->
<dependency>
l***@apache.org
2018-10-04 05:50:21 UTC
Permalink
Minor improvements to the SshClient/SshServer toString() implementations


Project: http://git-wip-us.apache.org/repos/asf/mina-sshd/repo
Commit: http://git-wip-us.apache.org/repos/asf/mina-sshd/commit/ba54b636
Tree: http://git-wip-us.apache.org/repos/asf/mina-sshd/tree/ba54b636
Diff: http://git-wip-us.apache.org/repos/asf/mina-sshd/diff/ba54b636

Branch: refs/heads/master
Commit: ba54b636837d142341abab03dfd158cd0d56c593
Parents: 25e4591
Author: Lyor Goldstein <***@gmail.com>
Authored: Wed Oct 3 21:21:42 2018 +0300
Committer: Goldstein Lyor <***@cb4.com>
Committed: Thu Oct 4 08:50:08 2018 +0300

----------------------------------------------------------------------
.../java/org/apache/sshd/client/SshClient.java | 27 ++++++++++----------
.../java/org/apache/sshd/server/SshServer.java | 21 ++++++++++-----
2 files changed, 28 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mina-sshd/blob/ba54b636/sshd-core/src/main/java/org/apache/sshd/client/SshClient.java
----------------------------------------------------------------------
diff --git a/sshd-core/src/main/java/org/apache/sshd/client/SshClient.java b/sshd-core/src/main/java/org/apache/sshd/client/SshClient.java
index f4c2d8c..cf160d5 100644
--- a/sshd-core/src/main/java/org/apache/sshd/client/SshClient.java
+++ b/sshd-core/src/main/java/org/apache/sshd/client/SshClient.java
@@ -141,16 +141,16 @@ public class SshClient extends AbstractFactoryManager implements ClientFactoryMa
* @see <A HREF="http://linux.die.net/man/5/ssh_config">ssh_config(5) - PreferredAuthentications</A>
*/
public static final List<NamedFactory<UserAuth>> DEFAULT_USER_AUTH_FACTORIES =
- Collections.unmodifiableList(Arrays.<NamedFactory<UserAuth>>asList(
- UserAuthPublicKeyFactory.INSTANCE,
- UserAuthKeyboardInteractiveFactory.INSTANCE,
- UserAuthPasswordFactory.INSTANCE
- ));
+ Collections.unmodifiableList(Arrays.<NamedFactory<UserAuth>>asList(
+ UserAuthPublicKeyFactory.INSTANCE,
+ UserAuthKeyboardInteractiveFactory.INSTANCE,
+ UserAuthPasswordFactory.INSTANCE
+ ));
public static final List<ServiceFactory> DEFAULT_SERVICE_FACTORIES =
- Collections.unmodifiableList(Arrays.asList(
- ClientUserAuthServiceFactory.INSTANCE,
- ClientConnectionServiceFactory.INSTANCE
- ));
+ Collections.unmodifiableList(Arrays.asList(
+ ClientUserAuthServiceFactory.INSTANCE,
+ ClientConnectionServiceFactory.INSTANCE
+ ));

protected IoConnector connector;
protected SessionFactory sessionFactory;
@@ -702,7 +702,7 @@ public class SshClient extends AbstractFactoryManager implements ClientFactoryMa

@Override
public String toString() {
- return "SshClient[" + Integer.toHexString(hashCode()) + "]";
+ return getClass().getSimpleName() + "[" + Integer.toHexString(hashCode()) + "]";
}

/**
@@ -767,10 +767,11 @@ public class SshClient extends AbstractFactoryManager implements ClientFactoryMa
/**
* Setup a default client. The client does not require any additional setup.
*
- * @return a newly create SSH client
+ * @return a newly create {@link SshClient} with default configurations
*/
public static SshClient setUpDefaultClient() {
- return ClientBuilder.builder().build();
+ ClientBuilder builder = ClientBuilder.builder();
+ return builder.build();
}

/**
@@ -820,7 +821,7 @@ public class SshClient extends AbstractFactoryManager implements ClientFactoryMa
*/
public static <C extends SshClient> C setKeyPairProvider(
C client, Path dir, boolean strict, boolean supportedOnly, FilePasswordProvider provider, LinkOption... options)
- throws IOException, GeneralSecurityException {
+ throws IOException, GeneralSecurityException {
KeyPairProvider kpp =
ClientIdentity.loadDefaultKeyPairProvider(dir, strict, supportedOnly, provider, options);
if (kpp != null) {

http://git-wip-us.apache.org/repos/asf/mina-sshd/blob/ba54b636/sshd-core/src/main/java/org/apache/sshd/server/SshServer.java
----------------------------------------------------------------------
diff --git a/sshd-core/src/main/java/org/apache/sshd/server/SshServer.java b/sshd-core/src/main/java/org/apache/sshd/server/SshServer.java
index e2c0c2f..60e5a4d 100644
--- a/sshd-core/src/main/java/org/apache/sshd/server/SshServer.java
+++ b/sshd-core/src/main/java/org/apache/sshd/server/SshServer.java
@@ -84,14 +84,13 @@ import org.apache.sshd.server.session.SessionFactory;
* @see org.apache.sshd.common.FactoryManager
*/
public class SshServer extends AbstractFactoryManager implements ServerFactoryManager, Closeable {
-
public static final Factory<SshServer> DEFAULT_SSH_SERVER_FACTORY = SshServer::new;

public static final List<ServiceFactory> DEFAULT_SERVICE_FACTORIES =
- Collections.unmodifiableList(Arrays.asList(
- ServerUserAuthServiceFactory.INSTANCE,
- ServerConnectionServiceFactory.INSTANCE
- ));
+ Collections.unmodifiableList(Arrays.asList(
+ ServerUserAuthServiceFactory.INSTANCE,
+ ServerConnectionServiceFactory.INSTANCE
+ ));


protected IoAcceptor acceptor;
@@ -397,10 +396,18 @@ public class SshServer extends AbstractFactoryManager implements ServerFactoryMa

@Override
public String toString() {
- return "SshServer[" + Integer.toHexString(hashCode()) + "]";
+ return getClass().getSimpleName()
+ + "[" + Integer.toHexString(hashCode()) + "]"
+ + "(port=" + getPort() + ")";
}

+ /**
+ * Setup a default server
+ *
+ * @return a newly create {@link SshServer} with default configurations
+ */
public static SshServer setUpDefaultServer() {
- return ServerBuilder.builder().build();
+ ServerBuilder builder = ServerBuilder.builder();
+ return builder.build();
}
}

Loading...