sidequest icon indicating copy to clipboard operation
sidequest copied to clipboard

[Bug] Windows paths containing spaces are incorrectly decoded in scheduled jobs

Open matthew-m-tan opened this issue 3 months ago • 1 comments

On Windows, if the path contains a space in it (standard paths like Program Files for example) sidequestjs will extract a path from the stacktrace containing an encoded path (Program%20Files) however when it comes time to resolve the module for the job queue it does not account for the string having been previously encoded i.e. Program%20Files becomes Program%2520Files.

To recreate:

  1. Create a node app
  2. Install sidequestjs
  3. Create a task and register it with .schedule
  4. Wait for it to run
  5. See error in logs stating path resolution failed

If this is unavoidable, the docs should at least recommend manualJobResolution be set to true to circumvent the issue.

matthew-m-tan avatar Aug 24 '26 20:08 matthew-m-tan

Confirmed as a bug. I'm already writing the fix. Thanks for your contribution!

GiovaniGuizzo avatar Aug 26 '26 09:08 GiovaniGuizzo