Skip to content

Conversation

salmanmkc
Copy link
Contributor

@salmanmkc salmanmkc commented Sep 22, 2025

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 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
Copy link
Contributor

@Copilot Copilot AI left a comment

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

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.

2 participants