Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filesync: escape special query characters #4009

Merged
merged 2 commits into from
Jul 12, 2023

Conversation

jedevc
Copy link
Member

@jedevc jedevc commented Jul 11, 2023

🛠️ Fixes #3946 (comment)

This ensures that files with '%' and '+' can still be properly copied.

To prevent regressions, this also adds in a couple of example test cases.

This ensures that files with '%' and '+' can still be properly copied.

To prevent regressions, this also adds in a couple of example test
cases.

Signed-off-by: Justin Chadwell <[email protected]>
@jedevc jedevc requested a review from tonistiigi July 11, 2023 14:11
Copy link
Member

@tonistiigi tonistiigi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this breaks the new daemon with an old client when the path contains + which I think was a case that worked before.

@jedevc
Copy link
Member Author

jedevc commented Jul 12, 2023

Without this patch though, we break a new daemon with a new client when the path contains + (that test case fails without the changes in filesync.go).

@jedevc
Copy link
Member Author

jedevc commented Jul 12, 2023

LGTM

@tonistiigi tonistiigi force-pushed the filesync-ascii-special-chars branch from cc1dcb2 to 48b6240 Compare July 12, 2023 16:31
@tonistiigi tonistiigi merged commit 6c3bdd4 into moby:master Jul 12, 2023
@jedevc jedevc deleted the filesync-ascii-special-chars branch July 13, 2023 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants