stash icon indicating copy to clipboard operation
stash copied to clipboard

[Bug Report] Library Scan hangs when a UNC path without a trailing slash is used.

Open PhantomEight opened this issue 3 years ago • 1 comments

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:

  1. Click Settings, then Library
  2. Add or Edit a directory so that it points to a valid UNC path without a trailing slash
  3. Click Confirm
  4. Click Tasks
  5. 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

PhantomEight avatar Nov 15 '22 05:11 PhantomEight

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.

WithoutPants avatar Nov 16 '22 05:11 WithoutPants

Problem persists in v0.21.0 running on Windows 10. Selective scan does work.

amonleon avatar Aug 07 '23 11:08 amonleon

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".

ghost avatar Dec 11 '23 02:12 ghost