Skip to content

UNC host allow list should be case insensitive #182277

Closed

Description

@geniuszxy

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.78.2
  • OS Version: 10.0.19044

Steps to Reproduce:

  1. My project is under the unc path "\\UBUNTUX" so I add "UBUNTUX" to the Allowed UNCHosts setting.
  2. 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.

Activity

  1. added
    under-discussion
    and removed on May 12, 2023
  2. changed the title [-]The Allowed UNCHosts setting is case sensitive[/-] [+]UNC host allow list should be case insensitive[/+] on May 12, 2023
  3. added
    bug
    windows
    on May 15, 2023
  4. Liturgist commented on May 17, 2023

    @Liturgist

    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.

  5. Liturgist commented on May 17, 2023

    @Liturgist
    1. My project is under the unc path "\\UBUNTUX" so I add "UBUNTUX" to the Allowed UNCHosts setting.
    2. Try to open the file "\\ubuntux\sample.txt", a dialog says "The host 'ubuntux' was not found in the list of allowed hosts."

    Try adding Ubuntux to the Allowed UNCHosts list.

  6. added a commit that references this issue on May 17, 2023
    951dbef
  7. added
    unreleased
    on May 22, 2023
  8. added a commit that references this issue on May 22, 2023
    558e126
  9. bpasero commented on May 22, 2023

    @bpasero
    Contributor

    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.

  10. added
    insiders-released
    and removed
    unreleased
    on May 25, 2023
  11. added
    author-verification-requested
    on May 26, 2023
  12. vscodenpa commented on May 26, 2023

    @vscodenpa

    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.

    Happy Coding!

  13. geniuszxy commented on May 29, 2023

    @geniuszxy
    Author

    /verified

  14. added
    verified
    and removed
    author-verification-requested
    on May 29, 2023
  15. locked and limited conversation to collaborators on Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buginsiders-releasedon-testplanuncunder-discussionverifiedwindows

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions