Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ftp server password has “@”,how to input passowrd?I use %40 replace “@”,but not useful。 #85

Open
wangyuc opened this issue Sep 18, 2021 · 3 comments

Comments

@wangyuc
Copy link

wangyuc commented Sep 18, 2021

No description provided.

@wangyuc wangyuc changed the title Server password Ftp server password has “@”,how to input passowrd?I use %40 replace “@”,but not useful。 Sep 18, 2021
@Abhi5h3k
Copy link

Abhi5h3k commented Jun 8, 2022

Hey @wangyuc did you find any solution? or workaround for this.

@wangyuc
Copy link
Author

wangyuc commented Jun 12, 2022

@Abhi5h3k yes ,I fix it .
Find class “SpeedTestTask.java”,method “startDownloadRequest” ,line 278.

if (userInfo != null && userInfo.indexOf(':') != -1) {
user = userInfo.substring(0, userInfo.indexOf(':'));
pwd = userInfo.substring(userInfo.indexOf(':') + 1);
}
------------------->
if (userInfo != null && userInfo.indexOf(':') != -1) {
user = userInfo.substring(0, userInfo.indexOf(':'));
pwd = userInfo.substring(userInfo.indexOf(':') + 1);
--------------------add---------------------------------------------
if (pwd.contains("%40")) {
pwd = pwd.replace("%40", "@");
}

                }

complie and run.

@Abhi5h3k
Copy link

we were able to resolve it for our use case by using URI object instead of URL object in startDownloadRequest().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants