Windows: scanner silently drops files whose full path is 260 characters or longer
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 48/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Perl
- Estrellas
- 1.8k
- Forks
- 389
- Merge medio
- 1 d 4 h
- PR fusionados (30 d)
- 10
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de LMS-Community/slimserver
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 67/100
LMS-Community/slimserver#1742 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
LMS-Community/slimserver#1555 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
CPAN modules for Perl 5.44Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
LMS-Community/slimserver#1744 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Serve a static FLAC DASH manifest as a FLAC streamPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 42/100
LMS-Community/slimserver#1741 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
-
compatibility
Dificultad 4/5 3-5 días Aptitud para principiantes 22/100
LMS-Community/slimserver#1739 · 6 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de LMS-Community/slimserver
Issues similares
-
area:cpan-port area:performance bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
fglock/PerlOnJava#2230 ·
Los mantenedores suelen responder en 1 día
-
Make logo .svgAbiertodocumentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
larchanka/ppc-code-ai-agent#38 ·
Los mantenedores suelen responder en 1 día
-
[doc] perlsub wrongly says that `"sub { ... }" creates a new subroutine each time it is executed'Abiertodocumentation Needs Triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
Los mantenedores suelen responder en 1 día
-
docs(api): /api/v3/external_sources spec is missing lc and section_titlePosiblemente ocupada @subhwastaken la tomó hoy. Abierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 82/100
openfoodfacts/openfoodfacts-server#15626 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100