You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
UNC host allow list should be case insensitive #182277
bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code Insiderson-testplanuncunder-discussionIssue is under discussion for relevance, priority, approachverifiedVerification succeededwindowsVS Code on Windows issues
Does this issue occur when all extensions are disabled?: Yes
VS Code Version: 1.78.2
OS Version: 10.0.19044
Steps to Reproduce:
My project is under the unc path "\\UBUNTUX" so I add "UBUNTUX" to the Allowed UNCHosts setting.
Try to open the file "\\ubuntux\sample.txt", a dialog says "The host 'ubuntux' was not found in the list of allowed hosts."
Paths on Windows are case insensitive, so IMO this setting should use the same rule.
This is not just an openning file issue, some extensions are using lowercase paths to process files, so actually I get many errors related to this issue. Now I have to add both "UBUNTUX" and "ubuntux" to the setting which is redundance.
I entered the UNC name in Settings as SERVER01.
I tried to open a file \\SERVER01\CODE\path\to\file.txt.
The error message appears to have changed the case.
Unable to read file '\\Server01\code\path\to\file.txt'
If I add Server01 as an allowed UNC host, it will work as expected.
This bug has been fixed in the latest release of VS Code Insiders!
Shingo (@geniuszxy), you can help us out by commenting /verified if things are now working as expected.
If things still don't seem right, please ensure you're on version 52e56ad of Insiders (today's or later - you can use Help: About in the command palette to check), and leave a comment letting us know what isn't working as expected.
bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code Insiderson-testplanuncunder-discussionIssue is under discussion for relevance, priority, approachverifiedVerification succeededwindowsVS Code on Windows issues
Activity
[-]The Allowed UNCHosts setting is case sensitive[/-][+]UNC host allow list should be case insensitive[/+]Liturgist commentedon May 17, 2023
I entered the UNC name in Settings as
SERVER01.I tried to open a file
\\SERVER01\CODE\path\to\file.txt.The error message appears to have changed the case.
Unable to read file '\\Server01\code\path\to\file.txt'If I add
Server01as an allowed UNC host, it will work as expected.Liturgist commentedon May 17, 2023
Try adding
Ubuntuxto the Allowed UNCHosts list.UNC host allow list should be case insensitive (fix #182277)
UNC host allow list should be case insensitive (fix #182277) (#182757)
bpasero commentedon May 22, 2023
The fix for this change will go out at the end of this week in our insiders build [1] and early June in stable build.
[1] Insiders builds normally release every day but are currently on-hold given the MSBuild conference that takes place.
vscodenpa commentedon May 26, 2023
This bug has been fixed in the latest release of VS Code Insiders!
Shingo (@geniuszxy), you can help us out by commenting
/verifiedif things are now working as expected.If things still don't seem right, please ensure you're on version 52e56ad of Insiders (today's or later - you can use
Help: Aboutin the command palette to check), and leave a comment letting us know what isn't working as expected.Happy Coding!
geniuszxy commentedon May 29, 2023
/verified