Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hye all,
i'm trying to build a job that has to connect/list and/or get/list/put files
my first tests (with jks and all required stuff) return the mesage :
503 You must issue the PBSZ command prior to PROT
when i check the job code, i see :
ftp_tFTPConnection_1 .setFileType(org.apache.commons.net.ftp.FTP.BINARY_FILE_TYPE); ftp_tFTPConnection_1.execPROT("P"); ftp_tFTPConnection_1.execPBSZ(0); } catch (Exception e) { throw e; }
i've tried to modify the template
D:\TOS_ESB-20180411_1414-V7.0.1\Studio\workspace\.JETEmitters\src\org\talend\designer\codegen\translators\internet\ftp\TFTPConnectionBeginJava.java
but each time i run the job modifications are over written... and the order returns to original order...
how can i deal with this issue ?
when i read filezilla logs, i can see that the order is respected... and it works ...
.../... Commande : PBSZ 0 Suivi : CTlsSocket::OnRead() Suivi : CFtpControlSocket::OnReceive() Réponse : 200 PBSZ 0 successful Suivi : CFtpControlSocket::SendNextCommand() Commande : PROT P Suivi : CTlsSocket::OnRead() Suivi : CFtpControlSocket::OnReceive() Réponse : 200 Protection set to Private Statut : Connecté .../...
reading the rfc2228 ...
the order is suposed to be PBSZ then PROT ...
.../... the client must issue a PBSZ command before it can issue the first PROT command. .../... If the server has not completed a security data exchange with the client, it should respond with a 503 reply code .../...
Thanks to the help of a cool forumer,
modifying this file
D:\TOS_ESB7.0.1\Studio\plugins\org.talend.designer.components.localprovider_7.0.1.20180411_1414\components\tFTPConnection\tFTPConnection_begin.javajet
225: ftp_<%=cid %>.execPBSZ(<%=protectionBufferSize %>);
226: ftp_<%=cid %>.execPROT(<%=protectionLevel %>);
allowed me to change the order of PROT/PBSZ
i don't have any more errors messages...
but no files transfert happens...
any advice is welcome :
I hoped 7.2 would fix it ...
and ... there is no more error message ...
but no file list as well
😞