Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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

@tashev2078: Thanks!
tashev2078

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.
FeelAirSlow

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).
martin

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.
tashev2078

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

martin wrote:

Where does your URL come from?

It is provided by HPE. For example: https://hprc-h3.it.hpe.com/hprc/
martin

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

Where does your URL come from?
tashev2078

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.
martin

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

Where exactly "in the app" do you paste it? And what do you paste? The password? Or session URL? In session URL, the plus sign needs to be URL-encoded.
https://winscp.net/eng/docs/session_url#special
tahev2078

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.