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

auth failed when using password which contains special character in 'fs.uris' #101

Open
lixwen opened this issue Oct 24, 2022 · 1 comment

Comments

@lixwen
Copy link

lixwen commented Oct 24, 2022

example:
username: root
password: admin@123
fs.url: sftp://root:admin%40123@xx.xx.xx.xx

class: AbstractPolicy.java
method: configFs(Map<String, Object> customConfigs)
In this method, workingDir.toUri() wll change above uri to sftp://root:admin%2540123@xx.xx.xx.xx.
After changing code like below, problem have solved.
FileSystem fs = FileSystem.newInstance(new URI(convert(uri)), fsConfig);

@mmolimar
Copy link
Owner

mmolimar commented Nov 6, 2022

Could you submit a PR for this?

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