Windows: scanner silently drops files whose full path is 260 characters or longer
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 48/100
調査の方向性
Start with Local/Async.pm and trace how file_filter handles a failed stat, then inspect the scanner logging configuration for the 9.1 and 9.2 behavior described here. Reproduce or test a scan with a path at the 260-character cutoff; done means skipped files are logged at ERROR and the scan reports a count, including when rescanning.
索引モデルが issue の本文から書いたものです。
説明
On Windows, the scanner silently skips any file whose full path is 260 characters or longer. In my library that is 112 of 5218 .opus files. The scan reports no errors, and LongPathsEnabled=1 makes no difference. The cutoff is exact: the longest indexed path is 259 characters, and the shortest missing path is 260 (leaving out files that also hit #1305).
Why it is silent: from reading the source, not stepped through on Windows. readdir returns the name, but stat fails. The file_filter in Local/Async.pm then falls through to folderFilter, which checks the parent directory and passes. The file gets a scanned_files row with size 0, and rescan only processes rows with filesize != 0. library.db matches this: every missing file has a size 0 row.
In 9.2: the failed stat is caught, but logged at WARN. scan.scanner defaults to ERROR, so it is still invisible by default.
Proposal: log these at ERROR with a per-scan count of skipped files, and backport that to 9.1. It would also report the ? names from #1305. Full long path support is a much bigger job: Perl's own Windows file calls have this limit (win32_stat, and PerlDir_mapA in win32/vdir.h), still do in blead, and tag reading, playback, artwork and transcoders all open files by path too.
Workaround: shorten the path, for example with a share rooted closer to the music.
LMS 9.1.1, Perl 5.32.1 x64, code page 1252, media folder on a UNC share.
- 主要言語
- Perl
- スター
- 1.8k
- フォーク
- 389
- 平均マージ
- 1日 4時間
- マージ済み PR(30日)
- 10
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
LMS-Community/slimserver のほかの issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 67/100
LMS-Community/slimserver#1742 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
LMS-Community/slimserver#1555 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
LMS-Community/slimserver#1744 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Serve a static FLAC DASH manifest as a FLAC stream対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 42/100
LMS-Community/slimserver#1741 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
compatibility
難易度 4/5 3〜5日 初心者へのやさしさ 22/100
LMS-Community/slimserver#1739 · コメント 6 件 ·
メンテナーはふだん 1 日以内に返信
LMS-Community/slimserver の issue をすべて見る
似ている issue
-
area:cpan-port area:performance bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
fglock/PerlOnJava#2230 ·
メンテナーはふだん 1 日以内に返信
-
Make logo .svgオープンdocumentation
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
larchanka/ppc-code-ai-agent#38 ·
メンテナーはふだん 1 日以内に返信
-
[doc] perlsub wrongly says that `"sub { ... }" creates a new subroutine each time it is executed'オープンdocumentation Needs Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
メンテナーはふだん 1 日以内に返信
-
docs(api): /api/v3/external_sources spec is missing lc and section_title対応中かも @subhwastaken が今日担当しました。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
openfoodfacts/openfoodfacts-server#15626 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100