1.6.0
Upgrade and Migrate SFTP Connector to Version 2.0 - Mule 4
Upgrade Anypoint Connector for SFTP (SFTP Connector) to version 2.0.0.
Changes in This Release
This release contains the following changes:
-
The system property
mule.sftp.useHomeDirectory
was removed. SFTP Connector now uses the default home directory. -
SFTP Connector 2.0.0 no longer supports the
jcraft library
. The connector now uses theapache mina sshd
library. -
The List operation no longer fetches the content of each file. Now, the payload of each list item contains the complete path to the found file or directory.
-
The SFTP Regular Size file attribute is renamed to Regular File because its behavior is not related to size. The file attribute value can be a file (
true
) or a directory (false
). -
SFTP Connector 2.0.0 does not support ciphers
3des-ctr
andarcfour
. For more information, refer to Supported Ciphers project. -
The SFTP proxy protocol works only with HTTP and SOCKS5.
-
SFTP Connector no longer uses
javax.activation
to resolve the media types of the files. The connector now usesApache Tika
, which can result in different media file interpretations. -
The connector changed the classes to manage the date from
LocalDateTime
toZonedDateTime
. -
The deprecated Encoding parameter in the configuration and Write operation is removed. The connector uses the Mule’s default encoding.
Requirements
Ensure that you meet these requirements before you perform the upgrade:
Software | Version |
---|---|
Mule |
4.3.0 and later |
Anypoint Studio |
7.5.0 and later |
JDK |
8 |
Upgrade Prerequisites
Before you perform the upgrade, you must complete the following:
-
Create a backup of your files, data, and configurations in case you need to restore to them.
Upgrade Steps
Follow these steps to perform the upgrade:
-
In Anypoint Studio, create a Mule project.
-
In Mule Palette, click Search in Exchange.
-
In Add Dependencies to Project, enter
SFTP
in the search field. -
In Available modules, select SFTP Connector and click Add.
-
Click Finish.
-
Verify that the SFTP Connector
mule-sftp-connector
version is2.0.0
in thepom.xml
file in the Mule project.
Studio upgrades the connector automatically.
Post Upgrade Steps
After you install the latest version of the connector, follow these steps to complete the upgrade:
Supported Ciphers
The Apache Mina SSHD library does not support ciphers 3des-ctr
and arcfour
. Additionally, the library introduces aes128-gcm
, aes256-gcm
, and cc20p1305_openssh
as alternatives.
For details, review the following table:
JSCH - SFTP Connector 1.6 | MINA SSHD - SFTP Connector 2.0 |
---|---|
|
|
|
|
|
Not supported. |
|
|
|
|
Not supported. |
|
|
|
|
|
|
|
|
|
Not supported. |
|
|
Not supported. |
|
|
|
|
Not supported. |
|