Which best practice to open winscp from protocol URL address ?

Advertisement

besancon
Donor
Joined:
Posts:
2
Location:
FRANCE

Which best practice to open winscp from protocol URL address ?

Hello

First, thanks for WinSCP. It is a great tool.

In this bug report, I use WinSCP 5.18.5 RC in Explorer mode, fresh new, under Windows 10, with Firefox 78.11.0 ESR.

I recently wanted to use it for a new need: I am building some web tool which generates several files. For some input, my HTML code will be:
<a href='winscp-sftp://www.example.com/dir1/dir2/'>...</a>
If I click on this link from Firefox, it works: WinSCP in Explorer mode will open from the only one configuration it knows and which is for www.example.com (it sets the user name, the ppk3 key) and only prompts for the passphrase. OK, great. Then I keep on working with my tool which now gives me another href:
<a href='winscp-sftp://www.example.com/dir3/dir4/dir5/'>...</a>
At this time, WinSCP is still open on /dir1/dir2/ or on another part of the file tree I went to. So I now click on the second href: the login window appears but it prompts for a user name, it knows nothing from the PPK to use. If I uncheck "Open new externally initiated sessions in existing window", a new window will open and does know about the user name, the ppk to use and prompts for the passphrase.

I don't know if this is some bug, some mistake i do, my misunderstanding of the documentation. I would prefer to stick with only one window and more precisely with only one session (only one tab). I could accomodate if opening a new link does open a new tab. But i would prefer only one tab at all.

So what is the best practice to configure winscp to only use one session when initiated externally from a protocol URL address in a web browser, please?

Thanks in advance for any help.

Best regards, Thierry.

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: Which best practice to open winscp from protocol URL address ?

I'm sending you an email with a development version of WinSCP to the address you have used to register on this forum.

Reply with quote

besancon
Donor
Joined:
Posts:
2
Location:
FRANCE

I gave a try to your alpha 6.0 release this evening. If fixes the problem i have. Well done. Bug bounty is on its way to you. Thanks.

In a private mail, can you give me the roadmap to expect this fix to be in some soon official release?

Best regards
Thierry BESANCON

Reply with quote

Advertisement

You can post new topics in this forum