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

filesystem: a dangling symlink is reported as "Parent directory does not exist"

オープン 初心者向け
#5,191 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
backend

調査の方向性

失敗は src/filesystem/lib.ts に記述されており、src/filesystem/__tests__/server-paths.test.ts で現在のメッセージが固定されています。まず validatePath と既存のパス検証テストを読んでください。リンク先が存在しないシンボリックリンクのエラーを更新し、その後、リクエストが引き続き拒否される一方で、テストがリンク切れのシンボリックリンクを示すメッセージを期待していることを確認してください。

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

説明

bug server-filesystem v2
Problem

When the requested path is a symlink whose target does not exist, fs.realpath in validatePath (src/filesystem/lib.ts) fails with ENOENT and the code falls through to resolveUnicodeEquivalentPath, whose own realpath of the entry fails as well. validatePath reports that as "Parent directory does not exist:

", naming a directory that does exist. src/filesystem/__tests__/server-paths.test.ts pins the message.

Expected

The error says the path is a broken symlink. Refusing the request is correct and stays.

Prior work
  • #4915 by @v0ropaev

The PR(s) above targeted the pre-refactor code and are closed as part of the backlog triage in #4875; this issue is where the work continues, with the PR(s) as a prototype. Thank you to their authors.

主要言語
TypeScript
スター
91.6k
フォーク
11.9k
平均マージ
6時間 37分
マージ済み PR(30日)
147

環境構築

はじめの一歩

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

modelcontextprotocol/servers のほかの issue

modelcontextprotocol/servers の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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