Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

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

Ouverte
#2,012 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
70/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
csharp
Domaine
desktop

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:

  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.

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

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de QL-Win/QuickLook

Toutes les issues de QL-Win/QuickLook

Issues similaires

Plus d'issues C#

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.