https://bz.apache.org/bugzilla/show_bug.cgi?id=68773
--- Comment #2 from Florian Rosenauer <[email protected]> --- Hello Jaikiran, thank you very much for the support and the change! I tested the version from https://ci-builds.apache.org/job/Ant/job/Ant_Nightly/215/artifact/ with the additional useSecureDataChannel="true" and we made some progress now. The new error message we get is this one: build.xml:26: The following error occurred while executing this line: build.xml:69: failed to enable secure data channel: javax.net.ssl.SSLException: 503 Must first issue PBSZ at org.apache.commons.net.ftp.FTPSClient.execPROT(FTPSClient.java:534) at org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:2593) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299) at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99) at org.apache.tools.ant.Task.perform(Task.java:350) at org.apache.tools.ant.Target.execute(Target.java:449) at org.apache.tools.ant.Target.performTasks(Target.java:470) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401) at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:36) at org.apache.tools.ant.Project.executeTargets(Project.java:1264) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:437) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99) at org.apache.tools.ant.Task.perform(Task.java:350) at org.apache.tools.ant.Target.execute(Target.java:449) at org.apache.tools.ant.Target.performTasks(Target.java:470) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401) at org.apache.tools.ant.Project.executeTarget(Project.java:1374) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1264) at org.apache.tools.ant.Main.runBuild(Main.java:818) at org.apache.tools.ant.Main.startAnt(Main.java:223) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101) Environment: ant-commons-net-1.10.14.jar commons-net-3.10.0.jar apache-ant-1.10.15alpha-bin.tar.gz OpenJDK 64-Bit Server VM (Red_Hat-11.0.21.0.9-1.el7_9) (build 11.0.21+9-LTS, mixed mode, sharing) As far as I found in rfc2228, and as I understand it, a PBSZ command must be issued before a PROT command. However, all pages I found via Google note, that for FTPS/FTPviaTLS it should be "PBSZ=0". Could you add this for testing to the code? Imho if it works, in case of a PROT command then always PBSZ=0 should be issued before. -- You are receiving this mail because: You are the assignee for the bug.
