Skip to content

TEST: verify path fix on ubuntu-latest (do not merge) - #1078

Closed
KevinJump wants to merge 3 commits into
v17/mainfrom
test/verify-fix-ubuntu
Closed

KevinJump wants to merge 3 commits into
v17/mainfrom
test/verify-fix-ubuntu

Conversation

@KevinJump

Copy link
Copy Markdown
Owner

Throwaway PR to confirm the ToAppSafeFileName fix resolves the ubuntu-latest test failure. Will close after checking.

KevinJump and others added 3 commits September 8, 2026 13:55
Path.GetFileName/GetDirectoryName only recognize the current OS's path
separator, so a Windows-style path (backslashes) passed to
ToAppSafeFileName on Linux was left completely untouched instead of
having app.config/web.config renamed - GetFileName returned the whole
string unchanged since there was no '/' to split on, so the bad-name
check never matched.

Discovered while testing whether the build/test workflows could move to
ubuntu-latest runners: PathNameTests.BadFileNamesAreAppended failed on
Linux for exactly this reason. Now splits on both '\' and '/' manually
so the result doesn't depend on which OS is parsing the path.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@KevinJump

Copy link
Copy Markdown
Owner Author

Verified - fix confirmed working on ubuntu-latest along with the env.Config casing bug. Both fixes going into a real PR.

@KevinJump KevinJump closed this Sep 8, 2026
@KevinJump
KevinJump deleted the test/verify-fix-ubuntu branch September 8, 2026 13:01
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.

1 participant