Preview fails on all UNC paths: ArgumentException "Illegal characters in path" (mapped drive works)
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 70/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- C#
- Sterne
- 25.5k
- Forks
- 1.4k
- Ø Merge
- 14 Std. 38 Min.
- Gemergte PRs (30 T.)
- 1
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus QL-Win/QuickLook
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 60/100
-
[Bug] If the first character entered into the search box is a space, the preview window will close.Evtl. vergeben @MORTEM3845 hat das vor 1 Tag übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
-
[Bug] MSI installer does not display the correct application icon in Windows Programs and FeaturesEvtl. vergeben @MORTEM3845 hat das vor 1 Tag übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
-
VideoViewer: rotated (portrait phone) videos shown sideways when system decimal separator is a commaEvtl. vergeben @MORTEM3845 hat das vor 1 Tag übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
Alle Issues in QL-Win/QuickLook
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
unoplatform/uno.check#591 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
weaviate/csharp-client#378 ·
-
agentic-workflows automated testing
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
Azure-Samples/Legacy-Modernization-Agents#194 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area-encryption area-security p1-recommended technical-debt
Schwierigkeit 2/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug flaky small
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
hexide-io/HexIDE#1906 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag