anancarv / python-artifactory

Typed interactions with the Jfrog Artifactory REST API
MIT License
55 stars 50 forks source link

ERROR Artifact does not exist when calling download where source path has spaces in name #105

Open veopxg opened 2 years ago

veopxg commented 2 years ago

Describe the bug When calling download with a source path with a space in the filename the download function fails with error: ERROR: Artifact ***/***/***/40.x.7.13 (#1173)/R255_40_13D7_13.zip does not exist

when using urllib.parse.quote to encode the source path the download function fails with error:

Input string, '***/***/***/40.x.7.13 (#1173)/R255_40_13D7_13.zip', doesn't have the prefix: '***/***/***/40.x.7.13%20%28%231173%29/'

(actual text replaced with ***)

To Reproduce Steps to reproduce the behavior:

  1. Try to call download function with a source path file name with a space in it.
  2. See error

Note: function calls info and properties work with the encoded url as expected.