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