René's URL Explorer Experiment


Title: Keep network mapping failures from aborting drives by mapleluvr · Pull Request #28443 · PowerShell/PowerShell · GitHub

Open Graph Title: Keep network mapping failures from aborting drives by mapleluvr · Pull Request #28443 · PowerShell/PowerShell

X Title: Keep network mapping failures from aborting drives by mapleluvr · Pull Request #28443 · PowerShell/PowerShell

Description: PR Summary Keep FileSystem provider initialization, including the Temp: drive, working when optional network mapping display metadata cannot be queried. Catch only Win32Exception around GetRootPathForNetworkDriveOrDosDevice in InitializeDefaultDrives. Leave DisplayRoot null, retain the drive-letter root and continue the existing registration/Temp logic. Native helpers, access checks, drive flags and other exception behavior are unchanged. Add a real Windows regression using an exact-owned, user-scoped, volatile DOS-device link to a unique unavailable localhost UNC path. The test requires actual Network/unready/WNet-failure evidence, opens a fresh real runspace and checks Temp, a healthy local drive and the network letter/root. Cleanup removes only its exact target. No SMB share/server, credentials or service setup is needed; unsupported Windows fixture setup fails rather than silently passes. Fix #28268 (the Win32 mapping-query failure case). PR Context This was reproduced in a tool-gateway workspace using ovnfs' default WinFsp Network frontend and MXC's native process-container filesystem policy. This is a general PowerShell fix: it contains no ovnfs/MXC name-specific handling, permission expansion, mapping/helper rewrite or stderr filtering. Under the unchanged restricted policy, the mounted drive is ready; WNetGetConnection and QueryDosDevice both return error 5. The unchanged helper still throws Win32Exception 5 after this patch, but optional display metadata no longer interrupts default drive initialization. Native successful mapping queries preserve the normal DisplayRoot. A whole-drive catch would incorrectly drop the workspace drive. Ready drives can be recovered by lazy automount even when initialization is incomplete, and permitted IO can already work on the failing build. Accordingly, the oracle checks fresh initial/secondary runspace Temp registration independently from allowed file operations, warning text and exit status. Local validation and limits Environment: Windows 11 build 26200.9711, installed Microsoft-signed MSIX PowerShell 7.7.0, existing WinFsp 2.1.25156; private SDK 11.0.100/.NET 11.0.0. Local self-contained Release builds used upstream Start-PSBuild with public NuGet; gallery-bundled modules and experimental-feature generation were not restored/generated. No global shell/SDK, services, drivers or ACL configuration was changed. Unmodified official MSIX 7.7.0, pinned master c422f721c132bcbc3d87bca3bad0fc7902b4a1bb and local v7.7.0 controls reproduce missing Temp under the real ready Network/restricted-process case; their Native controls pass. Exact fix commit 5227715310b1b78150e7e5d7cd3ea7338bdd13ce and an identical-code/test local 7.7.0 backport pass both Native and unchanged restricted-policy cases. Fresh initial/secondary Temp, module discovery/import, cwd, enumeration and actual PS/.NET reads/writes were checked. Actual readonly write and denied read/write still fail with UnauthorizedAccessException; host-observed source/readonly/denied sentinels remain unchanged. The new unready-network xUnit regression fails at missing Temp before the fix and passes after it. Focused production-source xUnit: 14 passed, 0 failed, 1 existing unconditional flaky-test skip. xUnit compiles its own production assemblies; these are not presented as the published-shell binaries. The three unchanged safe FileSystem Pester describes (long paths, extended Item/Content and extended Path/Location), run with Pester 4.10.1 on each fixed published build: 63 passed, 0 failed, 1 existing OS-inapplicable skip per build. Native local-SUBST and normal network mapping controls also pass. Complete stdout/stderr bytes, source/build identity, native error branches, actual output bytes and exact-owned fixture cleanup were retained locally and independently reviewed. No host paths, private policy grants, credentials or fixture-state files are included in this PR. No full-suite/upstream-CI, official-package equivalence, other Windows/security-context or full gateway-integration claim. Direct-UNC/network-backed SUBST generic parser exceptions are not repaired or covered by this Win32-only patch. Developed with coding-agent assistance and independently reviewed. Upstream CI/review remain separate acceptance gates; no CLA or other legal agreement has been signed as part of this task. PR Checklist Meaningful imperative title and summarized changes. Correct copyright/license headers on the new C# test. Ready for review; this does not claim upstream merge checks have passed. No breaking API/cmdlet changes. No new cmdlet/parameter/about-topic documentation required for this initialization regression fix; maintainer documentation requirements remain applicable. Added a production-path regression test and ran focused local validation.

Open Graph Description: PR Summary Keep FileSystem provider initialization, including the Temp: drive, working when optional network mapping display metadata cannot be queried. Catch only Win32Exception around GetRootPath...

X Description: PR Summary Keep FileSystem provider initialization, including the Temp: drive, working when optional network mapping display metadata cannot be queried. Catch only Win32Exception around GetRootPath...

Opengraph URL: https://github.com/PowerShell/PowerShell/pull/28443

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:727aee55-f1e0-4ee3-cc8f-7725addec302
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE23C:55614:20D5EE:2B59AA:6AFD0268
html-safe-nonce24bc555ead169ab6626db9294d470625060224291911e6d38266f62ad9cabfeb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjNDOjU1NjE0OjIwRDVFRToyQjU5QUE6NkFGRDAyNjgiLCJ2aXNpdG9yX2lkIjoiNjYwNTA0MjcwOTUxNjA1OTI0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacfb2d4b3740d6652ad2dc4c6a9420e7496e1c6db372dd8b24be0dbc8fc8e87452
hovercard-subject-tagpull_request:5363653489
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/PowerShell/PowerShell/pull/28443/files
twitter:imagehttps://avatars.githubusercontent.com/u/277216670?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/277216670?s=400&v=4
og:image:altPR Summary Keep FileSystem provider initialization, including the Temp: drive, working when optional network mapping display metadata cannot be queried. Catch only Win32Exception around GetRootPath...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None8fd5a24ae29aa78df114eaaf1f9a839e8c3b7c0d27549e4f54678bb7cf3166d4
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasedd0990b833f227378ab84f1d9519db1a04660550
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/pull/28443/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F28443%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F28443%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/pull/28443/files
Reloadhttps://github.com/PowerShell/PowerShell/pull/28443/files
Reloadhttps://github.com/PowerShell/PowerShell/pull/28443/files
PowerShellhttps://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Codehttps://github.com/PowerShell/PowerShell
Issues1.3k (1.3k)https://github.com/PowerShell/PowerShell/issues
Pull requests364 (364)https://github.com/PowerShell/PowerShell/pulls
Discussionshttps://github.com/PowerShell/PowerShell/discussions
Actionshttps://github.com/PowerShell/PowerShell/actions
Projectshttps://github.com/PowerShell/PowerShell/projects
Security and quality3 (3)https://github.com/PowerShell/PowerShell/security
Insightshttps://github.com/PowerShell/PowerShell/insights
Sign up for GitHub https://github.com/signup?return_to=%2FPowerShell%2FPowerShell%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FPowerShell%2FPowerShell%2Fissues%2Fnew%2Fchoose
mapleluvr (mapleluvr)https://github.com/mapleluvr
PowerShell:masterhttps://github.com/PowerShell/PowerShell/tree/master
mapleluvr:fix/network-drive-display-root-initializationhttps://github.com/mapleluvr/PowerShell/tree/fix/network-drive-display-root-initialization
Conversation 2 https://github.com/PowerShell/PowerShell/pull/28443
Commits 2 https://github.com/PowerShell/PowerShell/pull/28443/commits
Checks 2 https://github.com/PowerShell/PowerShell/pull/28443/checks
Files changed 2 https://github.com/PowerShell/PowerShell/pull/28443/files
Keep network mapping failures from aborting drives https://github.com/PowerShell/PowerShell/pull/28443/files#top
Show all changes 2 commits https://github.com/PowerShell/PowerShell/pull/28443/files
5227715 Keep network mapping failures from aborting drives mapleluvr Nov 17, 2026 https://github.com/PowerShell/PowerShell/pull/28443/commits/5227715310b1b78150e7e5d7cd3ea7338bdd13ce
cef395d Document and format the network mapping test mapleluvr Nov 17, 2026 https://github.com/PowerShell/PowerShell/pull/28443/commits/cef395d66e4a928f87629fcbf50387ce9906713f
Clear filters https://github.com/PowerShell/PowerShell/pull/28443/files
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/28443/files
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/28443/files
FileSystemProvider.cs https://github.com/PowerShell/PowerShell/pull/28443/files#diff-3de7b3fa15124e23cfb93904c79b222c300015318c577e73a04526bf3e9b60ef
test_FileSystemProviderInitialization.cs https://github.com/PowerShell/PowerShell/pull/28443/files#diff-4a9d5cad9d737c69322049aeb1aa9a99c4c4eeeec95724dd984f811493b9b290
https://github.com/PowerShell/PowerShell/blob/master/.github/CODEOWNERS#L7
src/System.Management.Automation/namespaces/FileSystemProvider.cshttps://github.com/PowerShell/PowerShell/pull/28443/files#diff-3de7b3fa15124e23cfb93904c79b222c300015318c577e73a04526bf3e9b60ef
View file https://github.com/PowerShell/PowerShell/blob/cef395d66e4a928f87629fcbf50387ce9906713f/src/System.Management.Automation/namespaces/FileSystemProvider.cs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/PowerShell/PowerShell/pull/28443/{{ revealButtonHref }}
https://github.com/PowerShell/PowerShell/pull/28443/files#diff-3de7b3fa15124e23cfb93904c79b222c300015318c577e73a04526bf3e9b60ef
https://github.com/PowerShell/PowerShell/pull/28443/files#diff-3de7b3fa15124e23cfb93904c79b222c300015318c577e73a04526bf3e9b60ef
https://github.com/PowerShell/PowerShell/blob/master/.github/CODEOWNERS#L7
test/xUnit/csharp/test_FileSystemProviderInitialization.cshttps://github.com/PowerShell/PowerShell/pull/28443/files#diff-4a9d5cad9d737c69322049aeb1aa9a99c4c4eeeec95724dd984f811493b9b290
View file https://github.com/PowerShell/PowerShell/blob/cef395d66e4a928f87629fcbf50387ce9906713f/test/xUnit/csharp/test_FileSystemProviderInitialization.cs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/PowerShell/PowerShell/pull/28443/{{ revealButtonHref }}
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.