fix: handle spaces in Python image COPY paths - #5088
Open
nkgotcode wants to merge 1 commit into
Open
Conversation
Signed-off-by: Khanh Le <nkgotcode@users.noreply.github.com>
vedranjukic
force-pushed
the
main
branch
2 times, most recently
from
June 23, 2026 14:12
2c15a7f to
b40f732
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Handle Python SDK image
COPYdirectives with local file or directory paths that contain spaces by emitting Dockerfile JSON-array syntax and parsing JSON-formCOPYsources when reading a Dockerfile.Fixes #2700
Documentation
Related Issue(s)
This PR addresses issue #2700.
Screenshots
n/a
Notes
Validation:
PYTHONPATH="libs/sdk-python/src:libs/api-client-python:libs/api-client-python-async:libs/toolbox-api-client-python:libs/toolbox-api-client-python-async" libs/sdk-python/.venv/bin/pytest libs/sdk-python/tests/test_image.py::TestImageFromDockerfile libs/sdk-python/tests/test_image.py::TestImageAddLocal -qSummary by cubic
Fix handling of Dockerfile COPY paths with spaces in the Python SDK by emitting JSON-array syntax and parsing JSON-form COPY directives when reading Dockerfiles. Fixes #2700.
Written for commit 7345a6c. Summary will update on new commits.