Skip to content

Path with space fix - #4052

Open
salmanmkc wants to merge 6 commits into
mainfrom
salmanmkc/path-fix
Open

salmanmkc wants to merge 6 commits into
mainfrom
salmanmkc/path-fix

Conversation

@salmanmkc

@salmanmkc salmanmkc commented Sep 22, 2025 •

Copy link
Copy Markdown
Contributor

There seems to sometimes be occasions where having a space in a path will cause panic/through a runtime error. This PR should allow spaces to work, however this is a change quite imfactful so I will need to test this in many different scenarios before rolling it out.

Copilot AI review requested due to automatic review settings September 22, 2025 14:19
@salmanmkc
salmanmkc requested a review from a team as a code owner September 22, 2025 14:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes an issue where script paths containing spaces were not properly quoted, which could cause script execution failures. The fix ensures that all script paths are wrapped in double quotes while properly escaping any existing quotes in the path.

  • Wraps script paths in double quotes to handle paths with spaces
  • Properly escapes existing quotes in the path before adding outer quotes
  • Adds unit tests to verify the quoting behavior for paths with spaces

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/Runner.Worker/Handlers/ScriptHandler.cs Wraps script paths in quotes to handle paths containing spaces
src/Test/L0/Worker/Handlers/ScriptHandlerL0.cs Adds unit test to verify proper quoting of script paths with spaces

@github-actions github-actions Bot added the Stale label Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants