Skip to content

404 on URL with colons (even percent-encoded) #478

@gsemet

Description

@gsemet

Hello

I have some user that uploaded files with colons (:) in the file name and folder. It fails in both case, if I percent-encode the special characters or not.

This URL works when downloading in a brower or with curl

https://my-artifactory.server/ui/native/generic-reponame/releases/MY_PROJECT/04.00-2517.00/project_access-eb%3Arelease_fl/project_access-eb%3Arelease_fl.zip

But when create an ArtifactoryPath object it fails with this error when doing a stat():

FileNotFoundError: [Errno 2] No such file or directory: 
https://my-artifactory.server/artifactory/api/storage/generic-reponame/releases/MY_PROJECT/04.00-2517.00/project_access-eb%3Arelease_fl/project_access-eb%3Arelease_fl.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugHelp WantedWe will be glad if somebody proposes a solution via PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions