Skip to content

fix: normalize Windows backslashes in makePathRelative results - #53

Merged
lmajano merged 1 commit into
masterfrom
claude/windows-path-handling-migrations-u6p67g
Jul 29, 2026
Merged

fix: normalize Windows backslashes in makePathRelative results#53
lmajano merged 1 commit into
masterfrom
claude/windows-path-handling-migrations-u6p67g

Conversation

@lmajano

@lmajano lmajano commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

On Windows, fileSystemUtil.makePathRelative() returns paths using
OS-native backslashes (e.g. resources\database\migrations). When
these are later used to build a BoxLang component path, the backslashes
are not treated as delimiters and corrupt the class name, causing a
ClassNotFoundBoxLangException. Wrap all three makePathRelative call
sites in replace(..., "\", "/", "all") to normalize to forward
slashes before the paths are stored or forwarded, matching the same
pattern already used in getInstalledBoxLangDriverSlugs().

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01Pxe6woQNVSZ9kR9MdjxKRr

On Windows, fileSystemUtil.makePathRelative() returns paths using
OS-native backslashes (e.g. resources\database\migrations\). When
these are later used to build a BoxLang component path, the backslashes
are not treated as delimiters and corrupt the class name, causing a
ClassNotFoundBoxLangException. Wrap all three makePathRelative call
sites in replace(..., "\\", "/", "all") to normalize to forward
slashes before the paths are stored or forwarded, matching the same
pattern already used in getInstalledBoxLangDriverSlugs().

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pxe6woQNVSZ9kR9MdjxKRr
@lmajano
lmajano merged commit a8907dd into master Jul 29, 2026
2 checks passed
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