PmsService icon indicating copy to clipboard operation
PmsService copied to clipboard

Unable to create mapped drive at root

Open hellafax opened this issue 2 years ago • 1 comments

When attempting to create a mapped drive within the Plex Media Service Settings tray utility, it does not appear to allow the creation of a mapped drive without a share folder in the UNC.

Example:

  • \MyServer\Videos -- GOOD!
  • \MyServer\ -- Does not allow save

My media is currently mapped off P:\ which is the root of my NAS. TV: P:\Shared Videos\TV Movies: P:\Shared Videos\Movies

hellafax avatar Nov 04 '23 04:11 hellafax

The reason is the RegEx at this line.

I think if you change it to:

[RegularExpression(@"^\\\\[a-zA-Z0-9\.\-_]{1,}(\\[a-zA-Z0-9\.\x20\-_]{1,}[\$]{0,1}){0,1}$", ErrorMessage = "Please enter a valid UNC path")]

It will work, but it'll need tested/validated. The change being {0,1} instead of {1,}

AlexHimself avatar Sep 26 '24 17:09 AlexHimself