Skip to content

Commit

Permalink
Fix URL encoding issue in pulp_file
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernhard committed Sep 24, 2024
1 parent 5adb873 commit 7494582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulp_file/app/tasks/synchronizing.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ async def run(self):

for entry in entries:
path = os.path.join(root_dir, entry.relative_path)
url = urlunparse(parsed_url._replace(path=path))
url = urlunparse(parsed_url._replace(path=quote(path, safe=":/")))
file = FileContent(relative_path=entry.relative_path, digest=entry.digest)
artifact = Artifact(size=entry.size, sha256=entry.digest)
da = DeclarativeArtifact(
Expand Down

0 comments on commit 7494582

Please sign in to comment.