Repository navigation
Fix short 8.3 paths in file system normalization - #28172
Slai.life (huong8373tt-beep) wants to merge 2 commits into
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
🟡 Changes recommended
The regression test can mask failures as skips and does not cover the preserved parent-resolution behavior.
3 open findings
What changed in this PR
Fixes Windows filesystem normalization when an 8.3 alias expands to a shorter long name while retaining parent-directory normalization protection.
Changes:
- Compares normalized paths against their parent before rejecting shortened paths.
- Adds Windows regression coverage for removal through an 8.3 alias.
| File | Description |
|---|---|
FileSystem.Tests.ps1 |
Adds short-path removal coverage. |
FileSystemProvider.cs |
Refines path over-normalization detection. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Signed-off-by: wangluoye <[email protected]>
|
Addressed the three Copilot findings in 99f124b:
Validated with the Windows Debug build and both the short-alias and parent-resolution regression cases. The review comments target the prior commit. |
|
This pull request has been automatically marked as Review Needed because it has been there has not been any activity for 7 days. |
|
All three review items are implemented at |
|
Follow-up for re-review: current head |


Summary
Remove-Itemthrough anA~1alias whose long name isaFixes #21070.
Testing
Start-PSBuild -Runtime win7-x64 -Configuration Debug -NoPSModuleRestore -SkipExperimentalFeatureGenerationFileSystem.Tests.ps1Pester test: 1 passed, 0 failedpwshremoves the same short-path target successfullyAI-assisted disclosure
This contribution was prepared after reproducing issue #21070 in a Windows environment. The developer authorized this contribution after the issue was reproduced and the fix was validated. Slai Agent Runtime assisted with reproduction, implementation, and test execution; the account owner is responsible for this submission.