Skip to content

Commit

Permalink
Bump org.apache.ftpserver:ftpserver-core from 1.2.0 to 1.2.1
Browse files Browse the repository at this point in the history
Bump org.apache.mina:mina-core from 1.2.0 to 1.2.1
  • Loading branch information
garydgregory committed Feb 14, 2025
1 parent 6837fa8 commit 54fe04d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import org.apache.ftpserver.ftplet.FtpException;
import org.apache.ftpserver.ftplet.UserManager;
import org.apache.ftpserver.listener.ListenerFactory;
import org.apache.ftpserver.usermanager.Md5PasswordEncryptor;
import org.apache.ftpserver.usermanager.PropertiesUserManagerFactory;
import org.apache.ftpserver.usermanager.impl.BaseUser;
import org.junit.jupiter.api.Assertions;
Expand Down Expand Up @@ -88,6 +89,8 @@ static void setUpClass(final String rootDirectory, final FileSystemFactory fileS
}
final FtpServerFactory serverFactory = new FtpServerFactory();
final PropertiesUserManagerFactory propertiesUserManagerFactory = new PropertiesUserManagerFactory();
// TODO Update to SHA512
propertiesUserManagerFactory.setPasswordEncryptor(new Md5PasswordEncryptor());
final URL userPropsResource = ClassLoader.getSystemClassLoader().getResource(USER_PROPS_RES);
Assertions.assertNotNull(userPropsResource, USER_PROPS_RES);
propertiesUserManagerFactory.setUrl(userPropsResource);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import org.apache.ftpserver.listener.ListenerFactory;
import org.apache.ftpserver.ssl.SslConfiguration;
import org.apache.ftpserver.ssl.SslConfigurationFactory;
import org.apache.ftpserver.usermanager.Md5PasswordEncryptor;
import org.apache.ftpserver.usermanager.PropertiesUserManagerFactory;
import org.apache.ftpserver.usermanager.impl.BaseUser;
import org.junit.jupiter.api.Assertions;
Expand Down Expand Up @@ -119,6 +120,8 @@ synchronized static void setUpClass(final boolean implicit) throws FtpException
socketPort = 0;
final FtpServerFactory serverFactory = new FtpServerFactory();
final PropertiesUserManagerFactory propertiesUserManagerFactory = new PropertiesUserManagerFactory();
// TODO Update to SHA512
propertiesUserManagerFactory.setPasswordEncryptor(new Md5PasswordEncryptor());
final URL userPropsResource = ClassLoader.getSystemClassLoader().getResource(USER_PROPS_RES);
Assertions.assertNotNull(userPropsResource, USER_PROPS_RES);
propertiesUserManagerFactory.setUrl(userPropsResource);
Expand Down Expand Up @@ -163,6 +166,7 @@ synchronized static void setUpClass(final boolean implicit) throws FtpException
}
socketPort = ((org.apache.ftpserver.impl.DefaultFtpServer) embeddedFtpServer).getListener(LISTENER_NAME).getPort();
// System.out.println("Using port " + SocketPort);
// System.out.printf("jdk.tls.disabledAlgorithms = %s%n", System.getProperty("jdk.tls.disabledAlgorithms"));
connectionUri = "ftps://test:test@localhost:" + socketPort;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ public String[] getEnabledCipherSuites() {
}

@Override
public String[] getEnabledProtocols() {
return null;
public String getEnabledProtocol() {
return DEFAULT_ENABLED_PROTOCOL;
}

@Override
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@
<dependency>
<groupId>org.apache.ftpserver</groupId>
<artifactId>ftpserver-core</artifactId>
<version>1.2.0</version>
<version>1.2.1</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
Expand All @@ -516,7 +516,7 @@
<dependency>
<groupId>org.apache.mina</groupId>
<artifactId>mina-core</artifactId>
<version>2.1.10</version>
<version>2.2.4</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
Expand Down
2 changes: 2 additions & 0 deletions src/changes/changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ The <action> type attribute can be add,update,fix,remove.
<!-- FIX -->
<!-- ADD -->
<!-- UPDATE -->
<action dev="ggregory" type="update" due-to="Gary Gregory">Bump org.apache.ftpserver:ftpserver-core from 1.2.0 to 1.2.1.</action>
<action dev="ggregory" type="update" due-to="Gary Gregory">Bump org.apache.mina:mina-core from 1.2.0 to 1.2.1.</action>
</release>
<release version="2.10.0" date="2025-02-01" description="This is a feature and maintenance release. Java 8 or later is required.">
<!-- FIX -->
Expand Down

0 comments on commit 54fe04d

Please sign in to comment.