python-artifactory icon indicating copy to clipboard operation
python-artifactory copied to clipboard

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

Open veopxg opened this issue 3 years ago • 0 comments

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.

veopxg avatar Jan 12 '22 12:01 veopxg