Topic "Exception from ScanFingerprint has too much data"

Author Message
[View user's profile]

Joined: 2016-03-04
Posts: 3
In 5.9.2 .NET library
If the same Session() is used with multiple SessionOptions() and one of the ScanFingerprint() throws an exception, the e.Message will contain logging from the previous connection.

e.Message Result:
winscp> option batch on
batch on
reconnecttime 120
winscp> option confirm off
confirm off
winscp> option reconnecttime 120
reconnecttime 120
winscp> open "ftp://xxxxx:xxxxx@xxxxx:21" -passive=1 -timeout=15
Connecting to xxxxx ...
Starting the session...
Session started.
Active session: [1] xxxxx@xxxxx
winscp> pwd
winscp> exit
Secure session (SSH or TLS/SSL) not specified.

"Secure session (SSH or TLS/SSL) not specified." is the only information I expected from e.Message. Anything before that is from a different SessionOptions(). Also, if it continues happening it will just keep adding to the e.Message and will end up with multiple "Secure session (SSH or TLS/SSL) not specified."
I haven't been able to replicate it on other methods.

Not sure if a known issue. Just thought I'll let you know about it.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27086
Location: Prague, Czechia
Thanks for your report.

This bug has been added to the tracker:

You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License