nodeSolidServer / nodeSolidServer/node-solid-server
Can't access meta data of file
還沒有人認領這個 Issue。
- 主要語言
- JavaScript
- 星號
- 1.8k
- 分支
- 308
- PR 合併指標
- 30 天內沒有已合併 PR
描述
After successfully creating a .meta file, I cannot access it. Requesting it returns a 404 response with the message "Trying to access metadata file as regular file". You can test it here: https://otman.solid.community/public/revive.jpeg.meta
The error is thrown in headers.js->linksHandler(...), but I don't know what this check is for: https://github.com/solid/node-solid-server/blob/19d1bf0ff5a9a59bb59300b8fce3bfcd038d0ea7/lib/header.js#L60-L64
Doing the same for a container works: https://otman.solid.community/public/.meta
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 lib/header.js 中的 linksHandler(...) 開始,重點檢查第 60–64 行附近的檢查邏輯,並使用提供的 .meta 檔案 URL 重現 404。將其與正常運作的容器 .meta 請求進行比較;當檔案中繼資料請求不再回傳 "Trying to access metadata file as regular file",同時容器中繼資料存取仍然正常時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript
- 領域
- backend
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100