Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Preview fails on all UNC paths: ArgumentException "Illegal characters in path" (mapped drive works)

Offen
#2,012 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
70/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
csharp
Bereich
desktop

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:

  1. Open any folder on an SMB network share in File Explorer, e.g. \server\share\folder
  2. Select an image file (e.g. .png) and press Spacebar
  3. QuickLook shows the fallback info card (path/size/date) instead of the image preview
  4. 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

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus QL-Win/QuickLook

Alle Issues in QL-Win/QuickLook

Ähnliche Issues

Weitere Issues zu C#

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.