Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyartifactory/objects/artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def copy(self, artifact_current_path: str, artifact_new_path: str, dryrun: bool
artifact_new_path = artifact_new_path.lstrip("/")
dry = 1 if dryrun else 0

self._post(f"api/copy/{artifact_current_path}?to={artifact_new_path}&dry={dry}")
self._post(f"api/copy/{artifact_current_path}?to={urllib.parse.quote(artifact_new_path, safe='')}&dry={dry}")
logger.debug("Artifact %s successfully copied", artifact_current_path)
return self.info(artifact_new_path)

Expand All @@ -369,7 +369,7 @@ def move(self, artifact_current_path: str, artifact_new_path: str, dryrun: bool

dry = 1 if dryrun else 0

self._post(f"api/move/{artifact_current_path}?to={artifact_new_path}&dry={dry}")
self._post(f"api/move/{artifact_current_path}?to={urllib.parse.quote(artifact_new_path, safe='')}&dry={dry}")
logger.debug("Artifact %s successfully moved", artifact_current_path)
return self.info(artifact_new_path)

Expand Down