Skip to content

WSL rejects legitimate report and configuration paths containing spaces #39

In review

Description

@sh00kapic

The Windows command builder re-parses shell-quoted arguments with a validator that disallows spaces. Passing the single argument --report-file=C:\My Project\report.json through the quoted-argument path reproduces the unsafe-parameter error. In fallback mode the temporary CLI copy has already been created when validation throws.

Expected behavior and verification

Preserve argument boundaries through WSL path conversion and quoting. Cover a path containing spaces for reports and compile databases in both Windows execution branches, retain rejection of unsafe raw input, and clean temporary files on failure.

ctrace/CommandBuilder.ts line 19 · ctrace/CommandBuilder.ts line 308

Activity

  1. added
    bug
    on Nov 20, 2026
  2. Arthurvroum commented on Nov 25, 2026

    @Arthurvroum
    Collaborator

    Fixed on branch 39-wsl-paths-with-spaces (5bc7c01), pull request #46.

    • In the temporary-copy branch, arguments are now validated before the CLI is copied, and temporary files are removed on any failure. A rejected argument leaves nothing behind.
    • The wsl.exe calls can be replaced in tests. A report and a compile database under C:\My Project are checked to stay single arguments in both Windows execution branches, on every platform. Unsafe raw input is still rejected.

    Unit and workspace suites pass locally (Linux).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions