Skip to content

Files containing spaces in their path are wrongly encoded #331

@slauriere

Description

@slauriere

When file paths are sent to GitLab, their path gets encoded using the default java.net.URLEncoder which is documented as "an utility for HTML form encoding". However, URL form encoding differs from path encoding at least concerning the way spaces get encoded, as explained in details in this stackoverflow post. This means that the method "sanitizePath" of GitlabAPI should take this into account and convert "+" characters into the string "%20".

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