Skip to content

Commit 73a4aba

Browse files
committed
Merge branch 'master' into 3.0.0
2 parents 1152a65 + 5864a66 commit 73a4aba

5 files changed

Lines changed: 14 additions & 10 deletions

File tree

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ updates:
2727
versions: [">= 6.0.0"]
2828
- dependency-name: "org.springframework:spring-framework-bom"
2929
versions: [">= 6.0.0"]
30+
- dependency-name: "org.springframework.integration:spring-integration-bom"
31+
versions: [">= 6.0.0"]
3032
- dependency-name: "org.eclipse.jgit:*"
3133
versions: [ ">= 6.0.0" ]
3234
- dependency-name: "org.mockito:*"
@@ -35,6 +37,8 @@ updates:
3537
versions: [ ">= 2.0.0" ]
3638
- dependency-name: "ch.qos.logback:*"
3739
versions: [ ">= 1.3.0" ]
40+
- dependency-name: "org.junit.jupiter:*"
41+
versions: [ ">= 6.0.0" ]
3842
# We *do* test against 2.2.X. We only want to get patch version updates for mina-core
3943
- dependency-name: "org.apache.mina:mina-core"
4044
update-types: [ "version-update:semver-major", "version-update:semver-minor" ]

pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@
107107
<!-- mockito 5.0 requires Java 11. -->
108108
<mockito.version>4.11.0</mockito.version>
109109
<testcontainers.version>1.21.3</testcontainers.version>
110-
<grpc.version>1.75.0</grpc.version> <!-- Used only in tests -->
110+
<grpc.version>1.76.0</grpc.version> <!-- Used only in tests -->
111111

112-
<maven.archiver.version>3.6.4</maven.archiver.version>
113-
<plexus.archiver.version>4.10.2</plexus.archiver.version>
112+
<maven.archiver.version>3.6.5</maven.archiver.version>
113+
<plexus.archiver.version>4.10.3</plexus.archiver.version>
114114
<!-- See https://pmd.github.io/ for available latest version -->
115115
<pmd.version>7.17.0</pmd.version>
116116
<japicmp.version>0.23.1</japicmp.version>
@@ -637,7 +637,7 @@
637637
<dependency>
638638
<groupId>org.junit.jupiter</groupId>
639639
<artifactId>junit-jupiter</artifactId>
640-
<version>5.13.4</version>
640+
<version>5.14.0</version>
641641
</dependency>
642642
<dependency>
643643
<groupId>org.mockito</groupId>
@@ -918,7 +918,7 @@
918918
<plugin>
919919
<groupId>org.apache.maven.plugins</groupId>
920920
<artifactId>maven-pmd-plugin</artifactId>
921-
<version>3.27.0</version>
921+
<version>3.28.0</version>
922922
<configuration>
923923
<targetJdk>${javac.target}</targetJdk>
924924
<printFailingErrors>true</printFailingErrors>

sshd-core/src/main/java/org/apache/sshd/server/session/AbstractServerSession.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ protected void handleServiceAccept(String serviceName, Buffer buffer) throws Exc
318318
}
319319

320320
// TODO: can services be initiated by the server-side ?
321-
disconnect(SshConstants.SSH2_DISCONNECT_PROTOCOL_ERROR,
321+
disconnect(SshConstants.SSH2_DISCONNECT_SERVICE_NOT_AVAILABLE,
322322
"Unsupported packet: SSH_MSG_SERVICE_ACCEPT for " + serviceName);
323323
}
324324

sshd-core/src/main/java/org/apache/sshd/server/session/ServerUserAuthService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ protected boolean handleUserAuthRequestMessage(
268268
}
269269

270270
if (disconnectSession) {
271-
session.disconnect(SshConstants.SSH2_DISCONNECT_PROTOCOL_ERROR,
271+
session.disconnect(SshConstants.SSH2_DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE,
272272
"Too many authentication failures: " + nbAuthRequests);
273273
return false;
274274
}
@@ -294,9 +294,9 @@ protected boolean handleUserAuthRequestMessage(
294294
}
295295

296296
if (disconnectSession) {
297-
session.disconnect(SshConstants.SSH2_DISCONNECT_PROTOCOL_ERROR,
297+
session.disconnect(SshConstants.SSH2_DISCONNECT_ILLEGAL_USER_NAME,
298298
"Change of username or service is not allowed (" + this.authUserName + ", " + this.authService + ")"
299-
+ " -> (" + username + ", " + service + ")");
299+
+ " -> (" + username + ", " + service + ")");
300300
} else {
301301
if (debugEnabled) {
302302
log.debug(

sshd-spring-sftp/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
<properties>
3434
<projectRoot>${project.basedir}/..</projectRoot>
35-
<spring.integration.version>5.5.7</spring.integration.version>
35+
<spring.integration.version>5.5.20</spring.integration.version>
3636
</properties>
3737

3838
<dependencyManagement>

0 commit comments

Comments
 (0)