nodeSolidServer / nodeSolidServer/node-solid-server
Can't access meta data of file
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.8k
- Forks
- 308
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in lib/header.js at linksHandler(...), especially the check around lines 60–64, and reproduce the 404 with the provided .meta file URL. Compare it with the working container .meta request; done means a file metadata request no longer returns "Trying to access metadata file as regular file" while container metadata access remains working.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100