https://bz.apache.org/bugzilla/show_bug.cgi?id=68773
Bug ID: 68773
Summary: not able to use FTPS (FTP via SSL) with encrypted data
connection
Product: Ant
Version: 1.10.14
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Optional Tasks
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
When we try to download files via FTPS from our z/OS Communications Server we
get the following error in the Server Log:
SR3502 reply: --> 425-Server requires protected data connection.
SR4696 usingUTF8: entered
SR3465 reply: entered
SR3502 reply: --> 425 Unable to open data connection.
With unencrypted FTP, everything is working fine.
We use this maven call for ant:
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<phase>process-sources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<ant
antfile="../src/main/scripts/build.xml" target="download-all" />
</target>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant-commons-net</artifactId>
<version>1.10.14</version>
</dependency>
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>3.10.0</version>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.10.14</version>
</dependency>
</dependencies>
</plugin>
And use this ant task:
<ftp server="mymainframe.mycompany"
useFtps="true"
userid="${userid}"
password="${password}"
passive="yes"
verbose="yes"
binary="no"
remotedir="${remotedir}"
action="get"
initialSiteCommand="site sbd=(IBM-1141,ISO8859-1)">
<fileset dir = "." includes="${fileset}" />
</ftp>
We think, that "PROT P" is not set, but we neither didn't find any ant option
to set this, nor does it work as initial site command. We think that it is
either missing in the implementation, or if it can be set, an example should be
added to the documentation.
We tcpdump'ed the connection, the control channel is encrypted but as soon as
the data channel should be used for the transfer, everything stops.
--
You are receiving this mail because:
You are the assignee for the bug.