python-artifactory
python-artifactory copied to clipboard
ERROR Artifact does not exist when calling download where source path has spaces in name
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:
- Try to call download function with a source path file name with a space in it.
- See error
Note: function calls info and properties work with the encoded url as expected.