Skip to content

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

@lixwen

Description

@lixwen

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions