ScFileStorage cant find key (and the ssh client cant either)

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
kaffeburk
Posts: 214
Joined: Mon 29 Jan 2007 08:03

ScFileStorage cant find key (and the ssh client cant either)

Post by kaffeburk » Sun 04 Aug 2019 15:58

Hello,

I attach a small film on the problem. Its a bit strange that i can open the client in design but not in runtime. Also the example you have as a demo have no problems.

Steps to reproduce (same as in movie)

Make a new project.
Drop a ScFileStorage
Put in any key
Test in runtime with this: If ScFileStorage1.Keys.FindKey('key1') = Nil Then ShowMessage('Empty');

As I mentioned, the SSHclient will also not find the key in runtime.




https://www.dropbox.com/s/d2fgo4m5oh01g ... 1.mp4?dl=0

Stellar
Devart Team
Posts: 496
Joined: Tue 03 Oct 2017 11:00

Re: ScFileStorage cant find key (and the ssh client cant either)

Post by Stellar » Wed 07 Aug 2019 09:22

If you haven't specified a directory in the TScFileStorage.Path property, the current directory will be used, which may be different in design-time and runtime. The key saved in design-time may not be found in run-time. To solve the issue, you may want to save keys only in runtime or set the directory in the TScFileStorage.Path property to store keys.

kaffeburk
Posts: 214
Joined: Mon 29 Jan 2007 08:03

Re: ScFileStorage cant find key (and the ssh client cant either)

Post by kaffeburk » Wed 07 Aug 2019 10:12

Thanx Stellar,

That solved the problem.

Stellar
Devart Team
Posts: 496
Joined: Tue 03 Oct 2017 11:00

Re: ScFileStorage cant find key (and the ssh client cant either)

Post by Stellar » Wed 07 Aug 2019 11:34

Glad to see that the issue was resolved.
Feel free to contact us if you have any further questions about our products.

Post Reply