SFTP - Downloading files

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
Pelstar
Posts: 3
Joined: Tue 31 Aug 2010 10:44

SFTP - Downloading files

Post by Pelstar » Tue 31 Aug 2010 21:01

Hi there,

I'm trying to use the ScSFTP component to download a batch of files from a secure FTP server, but I keep receiving an "Unexpected end of packet" error whenever I call the download command.

Any ideas what could be causing this? I'm sure it's something obvious, but I can;t see it.

Sam

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Wed 01 Sep 2010 07:18

I can not reproduce the problem.
Please try to use the SFTPClient demo of SecureBridge and check if the problem persists.
Can I have access to your SFTP server?

Pelstar
Posts: 3
Joined: Tue 31 Aug 2010 10:44

Post by Pelstar » Wed 01 Sep 2010 09:09

Hi Dimon,

I have tried using the client demo and it works fine. I get the error when I attempt to run the ftp client in a new application, and automatically download all files immediately after connection.

Do you know what could cause that error? I can only see four places in the source code that can cause it to pop up, and two of those are to do with the PacketType

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Wed 01 Sep 2010 10:11

Try to compose a small sample to demonstrate the problem and send it to dmitryg*devart*com.

Pelstar
Posts: 3
Joined: Tue 31 Aug 2010 10:44

Post by Pelstar » Thu 02 Sep 2010 09:00

Hi Dimon,

I sent you a test program yesterday from samuel*pelstar*co*uk. Did you receive it?

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Thu 02 Sep 2010 10:38

We have received your test application. We have reproduced this problem and fixed it. This fix will be included in the next SecureBridge build.
The error is arised because you are trying to download files before you get all directory list. As a workaround you can read all directory list and only after this download all files by turn.

Post Reply