Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#2,012 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
70/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
csharp
領域
desktop

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C#
スター
25.3k
フォーク
1.3k
平均マージ
6日 23時間
マージ済み PR(30日)
3

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

QL-Win/QuickLook のほかの issue

QL-Win/QuickLook の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。