Preview fails on all UNC paths: ArgumentException "Illegal characters in path" (mapped drive works)
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 70/100
Piste de recherche
Start at ResolveShortcut, identified in the stack trace, and follow its call from QuickLook.ViewWindowManager.TogglePreview. Reproduce with an image on a UNC path such as \server\share\folder, then verify that previewing it no longer shows the fallback card or ArgumentException and behaves like a mapped-drive preview.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Environment: QuickLook 4.5.0 (GitHub release), Windows 10.0.19041.2
Steps to reproduce:
- Open any folder on an SMB network share in File Explorer, e.g. \server\share\folder
- Select an image file (e.g. .png) and press Spacebar
- QuickLook shows the fallback info card (path/size/date) instead of the image preview
- Pressing Spacebar again may show an error dialog: System.ArgumentException: Illegal characters in path
Stack trace (from the error dialog, ResolveShortcut → Path.CheckInvalidPathChars):
System.ArgumentException: 路径中具有非法字符。
在 System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
在 System.IO.Path.GetExtension(String path)
在 QuickLook.Plugin.QuickLook.Plugin.ResolveShortcut(String path)
在 QuickLook.ViewWindowManager.TogglePreview(String path, Boolean isFromPipe)
Findings:
- Fails with all UNC forms: \server.domain\share, \shortname\share, and \10.x.x.x\share
- The exact same files preview correctly when the share is accessed via a mapped drive letter (Z:...)
- Local files preview correctly
- Possibly related to #617 (UriFormatException on \wsl$... — also UNC-path parsing, different exception)
Expected: files on UNC paths should preview like local ones; at minimum, ArgumentException should be caught in ResolveShortcut.
- Langage dominant
- C#
- Étoiles
- 25.5k
- Forks
- 1.4k
- Merge moyen
- 6 j 23 h
- PR mergées (30 j)
- 3
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Aucun guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de QL-Win/QuickLook
-
Difficulté 2/5 1-3 heures Accessibilité débutants 60/100
-
[Bug] If the first character entered into the search box is a space, the preview window will close.Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
-
[Bug] MSI installer does not display the correct application icon in Windows Programs and FeaturesOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
VideoViewer: rotated (portrait phone) videos shown sideways when system decimal separator is a commaOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
Difficulté 4/5 1-2 jours Accessibilité débutants 45/100
Toutes les issues de QL-Win/QuickLook
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
-
[Bug]: Revit selector reads process ids 2000-2099 as years (flaky AgentClientTests.AYearOrAProcessIdSelectsTheHost)Peut-être pris @Wurschdhaud l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 83/100
pyrevitlabs/pyRevit#3817 ·
Les mainteneurs répondent en général sous 1 jour
-
bug effort:S P2
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
nightscout/nocturne#2449 ·
Les mainteneurs répondent en général sous 1 jour
-
audit:1 bug
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
NethermindEth/dotnet-libp2p#395 ·
Les mainteneurs répondent en général sous 1 jour
-
area: client bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour