tftp : ftps : 503 You must issue the PBSZ command prior to PROT

Six Stars

tftp : ftps : 503 You must issue the PBSZ command prior to PROT

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é
.../... 

 

Six Stars

Re: tftp : ftps : 503 You must issue the PBSZ command prior to PROT

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
.../...
Six Stars

Re: tftp : ftps : 503 You must issue the PBSZ command prior to PROT

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 :

Six Stars

Re: tftp : ftps : 503 You must issue the PBSZ command prior to PROT

I hoped 7.2 would fix it ...

and ... there is no more error message ...

but no file list as well 

:-(

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog