Skip to content

Commit fff5fe2

Browse files
committed
Merge branch 'master' into 3.0.0
2 parents a56c8f5 + a3d2251 commit fff5fe2

7 files changed

Lines changed: 14 additions & 19 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
wrapperVersion=3.3.4
22
distributionType=only-script
3-
distributionUrl=https://dlcdn.apache.org/maven/maven-3/3.9.12/binaries/apache-maven-3.9.12-bin.zip
3+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.12/apache-maven-3.9.12-bin.zip

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ generated by [japicmp](https://siom79.github.io/japicmp) are published at
1111
Version 3 includes all the features and bug fixes of version 2, including the
1212
[latest ones](https://github.com/apache/mina-sshd/blob/master/CHANGES.md#planned-for-next-version).
1313

14-
* For building Apache MINA SSHD 3.0, **Java >= 24** and Apache **Maven >= 3.9.11** are required. Generated artifacts
14+
* For building Apache MINA SSHD 3.0, **Java >= 24** and Apache **Maven >= 3.9.12** are required. Generated artifacts
1515
still use Java 8 as minimum runtime requirement.
1616

1717
## Milestone 1: Pre-Release 3.0.0-M1

pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.apache</groupId>
2424
<artifactId>apache</artifactId>
25-
<version>36</version>
25+
<version>37</version>
2626
</parent>
2727

2828
<groupId>org.apache.sshd</groupId>
@@ -109,12 +109,12 @@
109109
<!-- mockito 5.0 requires Java 11. -->
110110
<mockito.version>4.11.0</mockito.version>
111111
<testcontainers.version>1.21.3</testcontainers.version>
112-
<grpc.version>1.76.0</grpc.version> <!-- Used only in tests -->
112+
<grpc.version>1.78.0</grpc.version> <!-- Used only in tests -->
113113

114114
<maven.archiver.version>3.6.5</maven.archiver.version>
115-
<plexus.archiver.version>4.10.3</plexus.archiver.version>
115+
<plexus.archiver.version>4.11.0</plexus.archiver.version>
116116
<!-- See https://pmd.github.io/ for available latest version -->
117-
<pmd.version>7.20.0</pmd.version>
117+
<pmd.version>7.22.0</pmd.version>
118118
<japicmp.version>0.23.1</japicmp.version>
119119
<sshd.tests.timeout.factor>1.0</sshd.tests.timeout.factor>
120120
<sshd.tests.rerun.count>2</sshd.tests.rerun.count>
@@ -217,7 +217,7 @@
217217
<plugin>
218218
<groupId>org.owasp</groupId>
219219
<artifactId>dependency-check-maven</artifactId>
220-
<version>12.1.8</version>
220+
<version>12.2.0</version>
221221
<!-- see https://jeremylong.github.io/DependencyCheck/dependency-check-maven/configuration.html -->
222222
<configuration>
223223
<!-- see https://github.com/jeremylong/DependencyCheck/issues/1394 -->

sshd-contrib/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
<dependency>
9999
<groupId>org.assertj</groupId>
100100
<artifactId>assertj-core</artifactId>
101-
<version>3.27.6</version>
101+
<version>3.27.7</version>
102102
<scope>test</scope>
103103
</dependency>
104104
</dependencies>

sshd-core/src/main/java/org/apache/sshd/common/forward/DefaultForwarder.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -848,10 +848,9 @@ public void sessionClosed(IoSession session) throws Exception {
848848
log.debug("sessionClosed({}) closing channel={} after {} messages - cause={}",
849849
session, channel, messagesCounter, (cause == null) ? null : cause.getClass().getSimpleName());
850850
}
851-
if (channel == null) {
852-
return;
851+
if (channel != null) {
852+
channel.close(false);
853853
}
854-
channel.close(cause != null);
855854
}
856855

857856
@Override

sshd-core/src/test/java/org/apache/sshd/server/ServerTest.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
import java.io.IOException;
2323
import java.io.InputStream;
2424
import java.io.OutputStream;
25-
import java.io.PipedInputStream;
26-
import java.io.PipedOutputStream;
2725
import java.io.StreamCorruptedException;
2826
import java.nio.charset.StandardCharsets;
2927
import java.time.Duration;
@@ -90,6 +88,7 @@
9088
import org.apache.sshd.util.test.TestChannelListener;
9189
import org.junit.jupiter.api.AfterEach;
9290
import org.junit.jupiter.api.BeforeEach;
91+
import org.junit.jupiter.api.Disabled;
9392
import org.junit.jupiter.api.MethodOrderer.MethodName;
9493
import org.junit.jupiter.api.Test;
9594
import org.junit.jupiter.api.TestMethodOrder;
@@ -284,6 +283,7 @@ public String toString() {
284283
* read the data, filling the ssh window and the tcp socket - the server session becomes idle, but the ssh
285284
* disconnect message can't be written - the server session is forcibly closed
286285
*/
286+
@Disabled("Unstable test")
287287
@Test
288288
void serverIdleTimeoutWithForce() throws Exception {
289289
final long idleTimeoutValue = TimeUnit.SECONDS.toMillis(5L);
@@ -329,12 +329,8 @@ public String toString() {
329329

330330
client.start();
331331
try (ClientSession s = createTestClientSession(sshd);
332-
ChannelExec shell = s.createExecChannel("normal");
333-
// Create a pipe that will block reading when the buffer is full
334-
PipedInputStream pis = new PipedInputStream();
335-
PipedOutputStream pos = new PipedOutputStream(pis)) {
332+
ChannelExec shell = s.createExecChannel("normal")) {
336333

337-
shell.setOut(pos);
338334
shell.open().verify(OPEN_TIMEOUT);
339335

340336
assertTrue(channelListener.waitForActiveChannelsChange(5L, TimeUnit.SECONDS),

sshd-netty/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<dependency>
4141
<groupId>io.netty</groupId>
4242
<artifactId>netty-bom</artifactId>
43-
<version>4.2.0.Final</version>
43+
<version>4.2.10.Final</version>
4444
<type>pom</type>
4545
<scope>import</scope>
4646
</dependency>

0 commit comments

Comments
 (0)