Skip to content

Slashes from path paramter in JobApi#downloadSingleArtifactsFile will result in '%5C' in final GET request on Windows #270

@rufusmai

Description

@rufusmai

The following use of the downloadSingleArtifactsFile method on Windows

Path path = Paths.get("folder/target/target.jar");
gitLabApi.getJobApi().downloadSingleArtifactsFile(1, 1, path);

will produce this request to the gitlab server (logged in the api_json.log from gitlab-rails:
/api/v4/projects/1/jobs/1/artifacts/folder%5Ctarget%5Ctarget.jar

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions