When there is a + sign in the password, it won't open the SFTP automatically

Advertisement

tahev2078
Guest

When there is a + sign in the password, it won't open the SFTP automatically

If there is + sign in the password, the SFTP won't load by pasting with Ctrl+V in the app. It will rather show additional dialog box where the password needs to be entered manually.

Reply with quote

Advertisement

tashev2078
Joined:
Posts:
3
Location:
BG

Re: When there is a + sign in the password, it won't open the SFTP automatically

Please see the three screenshots in REVERSE order, due to the way they are uploading:
  1. Is where the issue manifests. Again, if there is no + symbol used in the password, it would not make any issues and it will load the SFTP.
  2. Is in the middle of it loading
  3. The main window of the app. In it I click Ctrl+V and it automatically load the user name, password and the respective host, port, etc.
I am pasting the entire SFTP link, e.g.
sftp://hq624545:HT3zh+RZ3sz+LX8m@xxxx-ab.xz.cat.com:2222/
Do I have to encode the + sign every single time? If yes, then this defeats the purpose, as I can do it much faster by simply copying the password and giving it to the prompt, but that's what I've been trying to resolve in the first place.

Screenshot_2025-06-11_15.12.26.jpg

Screenshot_2025-06-11_15.11.38.jpg

Screenshot_2025-06-11_15.10.53.jpg

Reply with quote

martin
Site Admin
martin avatar

Re: When there is a + sign in the password, it won't open the SFTP automatically

Where does your URL come from?

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: When there is a + sign in the password, it won't open the SFTP automatically

I'll consider optionally not decoding the plus sign, if more people have this problem.

Reply with quote

FeelAirSlow
Joined:
Posts:
6

Same problem with ";"

Hello,
I had a similar problem in one of my own apps. As passwords often include special chars nowadays, it's interesting to note that, according to the RFC3986 :
authority = [ userinfo "@" ] host [ ":" port ]
userinfo = *( unreserved / pct-encoded / sub-delims / ":" )
unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
pct-encoded = "%" HEXDIG HEXDIG
sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="
So, to be able to use urls created by others that are compliant with this RFC, you should accept passwords containing 0-9, a-z, A-Z, and also following chars !$&'()*+,;=-._~: as they are. BTW, it's the same for the user, except for :.

At the moment, in WinSCP, only ; and + are not accepted as-is (we have to encode them : %3B and %2B).

Reply with quote

tashev2078
Joined:
Posts:
3
Location:
BG

Re: When there is a + sign in the password, it won't open the SFTP automatically

martin wrote:

I'll consider optionally not decoding the plus sign, if more people have this problem.
Regardless of whether you will make the change so that the + sign does go through without interrupting the access to SFTP from HPE as described in this thread, I am going to make my contribution to WinSCP as it has saved me and my colleagues tremendous amount of time in manual entering (copy-paste). I appreciate and I am thankful that this SW exists and we all can benefit from it.

Reply with quote

Advertisement

You can post new topics in this forum