Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create mapped drive at root #82

Open
hellafax opened this issue Nov 4, 2023 · 1 comment
Open

Unable to create mapped drive at root #82

hellafax opened this issue Nov 4, 2023 · 1 comment

Comments

@hellafax
Copy link

hellafax commented Nov 4, 2023

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

@AlexHimself
Copy link

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,}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants