Fix downloading artifacts from GCP when the download URI includes unsafe characters

This commit is contained in:
Alex Burlacu 2023-05-25 18:14:17 +03:00
parent a8746de9eb
commit 60c3a5ef98
2 changed files with 1181 additions and 1179 deletions

File diff suppressed because it is too large Load Diff

View File

@ -44,7 +44,7 @@ def get_config_object_matcher(**patterns):
def quote_url(url): def quote_url(url):
parsed = urlparse(url) parsed = urlparse(url)
if parsed.scheme not in ("http", "https"): if parsed.scheme not in ("http", "https", "gs"):
return url return url
parsed = parsed._replace(path=quote(parsed.path)) parsed = parsed._replace(path=quote(parsed.path))
return urlunparse(parsed) return urlunparse(parsed)