#Camel, Apache Common Net and FTPS

1 messages · Page 1 of 1 (latest)

blazing oriole
#

Hi everyone, I'm trying to create a simple app that connects to a FileZilla FTP server using explicit TLS. Every time I try to interact with the data, I encounter the following error:
"425 Unable to build data connection: TLS session of data connection not resumed."

After doing some research, I found that the issue might be related to Apache Commons Net, which apparently creates a new connection for each command. However, FileZilla requires the reuse of the TLS session.
To resolve this, it seems we need to override the behavior of Commons Net, as done in the CyberDuck project.

Has anyone faced a similar issue or knows how to address it? Any help would be greatly appreciated!

trim mesaBOT
#

<@&1004656351647117403> please have a look, thanks.

trim mesaBOT
#

@blazing oriole

Your question has been closed due to inactivity.

If it was not resolved yet, feel free to just post a message below
to reopen it, or create a new thread.

Note that usually the reason for nobody calling back is that your
question may have been not well asked and hence no one felt confident
enough answering.

When you reopen the thread, try to use your time to improve the quality
of the question by elaborating, providing details, context, all relevant code
snippets, any errors you are getting, concrete examples and perhaps also some
screenshots. Share your attempt, explain the expected results and compare
them to the current results.

Also try to make the information easily accessible by sharing code
or assignment descriptions directly on Discord, not behind a link or
PDF-file; provide some guidance for long code snippets and ensure
the code is well formatted and has syntax highlighting. Kindly read through
https://stackoverflow.com/help/how-to-ask for more.

With enough info, someone knows the answer for sure 👍

blazing oriole
#

Anyone😭 ?

dusty gull
#

Yeah no, sorry

#

I'm just responding so you know yeah people saw this

#

I just don't know - if you share more info we can join in on guessing

#

Sometimes that can help, sometimes not

trim mesaBOT
#

@blazing oriole

Your question has been closed due to inactivity.

If it was not resolved yet, feel free to just post a message below
to reopen it, or create a new thread.

Note that usually the reason for nobody calling back is that your
question may have been not well asked and hence no one felt confident
enough answering.

When you reopen the thread, try to use your time to improve the quality
of the question by elaborating, providing details, context, all relevant code
snippets, any errors you are getting, concrete examples and perhaps also some
screenshots. Share your attempt, explain the expected results and compare
them to the current results.

Also try to make the information easily accessible by sharing code
or assignment descriptions directly on Discord, not behind a link or
PDF-file; provide some guidance for long code snippets and ensure
the code is well formatted and has syntax highlighting. Kindly read through
https://stackoverflow.com/help/how-to-ask for more.

With enough info, someone knows the answer for sure 👍

blazing oriole
#

here I pretty sur that have to override this @Override
protected void prepareDataSocket(Socket socket) throws IOException {
if (socket instanceof SSLSocket) {
SSLSocket sslSocket = (SSLSocket) socket;
sslSocket.setEnabledProtocols(new String[] {"TLSv1.2", "TLSv1.3"});
sslSocket.setUseClientMode(true);
sslSocket.setEnableSessionCreation(true);
}
super.prepareDataSocket(socket);
} and the connectDataSocket