File in use after upload to Sbridge SFTP server

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
tcaduto12068
Posts: 132
Joined: Wed 17 Aug 2016 05:57

File in use after upload to Sbridge SFTP server

Post by tcaduto12068 » Tue 10 Jan 2017 17:56

Hi,
Every once in a great while I will get a file that has been uploaded and can't be moved or deleted because it's in use.

I believe a unhandled exception is occurring from some protocol issue maybe and this causes the onclosefile event to not fire. I usually get a access violation raised in the onclientdisconnect when this happens. Is there a way to get the file handle in case of an error and make sure it's closed?

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: File in use after upload to Sbridge SFTP server

Post by ViktorV » Wed 11 Jan 2017 10:51

We have changed the behavior, and in SecureBridge starting from version 7.2.3, the OnSuccess event occurs with Operation = opClosingHandle, when the local file is already closed.

tcaduto12068
Posts: 132
Joined: Wed 17 Aug 2016 05:57

Re: File in use after upload to Sbridge SFTP server

Post by tcaduto12068 » Wed 08 Mar 2017 23:06

I mean the file is in use on the server after I upload it with any client, it only happens once in a great while if the client has some kind of issue while uploading.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: File in use after upload to Sbridge SFTP server

Post by ViktorV » Thu 09 Mar 2017 11:40

Unfortunately, we could not reproduce the issue when an error occurs while uploading a file to the SFTP server and the OnCloseFile event handler is not called.
In order to get a detailed answer, please compose a full sample demonstrating the specified behavior and send it to us using the contact form https://www.devart.com/company/contactform.html Also, please specify the used IDE version.

tcaduto12068
Posts: 132
Joined: Wed 17 Aug 2016 05:57

Re: File in use after upload to Sbridge SFTP server

Post by tcaduto12068 » Thu 09 Mar 2017 16:15

It only happens once in a great while when some odd protocol error happens.
But when it does happen I have to stop and restart the server.

This is with version 7.1.2, but I can't get the latest version to work properly in lazarus 1.6.4 so I don't know it could be resolved.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: File in use after upload to Sbridge SFTP server

Post by ViktorV » Mon 13 Mar 2017 12:53

As we wrote earlier, unfortunately, we could not reproduce the issue. To understand the issue cause and find a solution to fix it, we need a test sample in which the issue is stably reproduced. As soon as we receive this sample and if the cause is in our product code, we will try to fix it as soon as possible.

Post Reply