[Bug Report] Library Scan hangs when a UNC path without a trailing slash is used.
Describe the bug Library Scan hangs when a UNC path without a trailing slash is used for your library For example \\host.domain\stash will not work vs. \\host.domain\stash\ which works fine.
Additionally, regardless of the presence of the trailing slash, the Select Directory dialog box will show a directory tree and contents of the path as if it's a valid entry.
To Reproduce Steps to reproduce the behavior:
- Click Settings, then Library
- Add or Edit a directory so that it points to a valid UNC path without a trailing slash
- Click Confirm
- Click Tasks
- Perform a Scan
Expected behavior The Task Queue will show an entry stating "Scanning..." with "Walking directory tree" and will not progress further. No errors relating to the scan will appear in the logs or console, even with log level set to Debug or Trace.
This issue doesn't reproduce in Stash v0.16.1 and earlier.
Stash Version: (from Settings -> About): v0.17.2
Desktop (please complete the following information):
- OS: Windows Server 2016
- Browser Chrome
- Version 107.0.5304.107
I'm not able to reproduce this locally. The presence of the trailing slash doesn't make any difference. I suspect that this might be specific to Windows Server, but I can't easily test.
Problem persists in v0.21.0 running on Windows 10. Selective scan does work.
Reproduced on v0.23.1 running on Windows 10. Selective scan also had the same problem when the top directory was selected, "\host\dir" Resolved by editing the Library path to "\host\dir".