Skip to content

Crashes when creating a folder or file with a restricted name #630

@jcardama

Description

@jcardama

Describe the bug
When trying to create a folder or file with a reserved name, it crashes.

List of names:

  • CON
  • AUX
  • PRN
  • LST
  • COM0 - COM9
  • LPT0 - LPT9
  • NUL

To Reproduce
Steps to reproduce the behavior:

  1. Go to desktop
  2. Right click
  3. New -> Folder
  4. Type a name of the ones mentioned above
  5. UWP Crashes

Expected behavior
An error message should pop showing you the following message as it does on explorer.exe when trying to use a reserved name: "The specified name is invalid."

Desktop (please complete the following information):

  • OS Version: Windows 10 1909 18363.752
  • App version: [v0.7.5.0]

Additional context

  • The names seems to be case insensitive.
  • It happens with folders and files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions