nodeSolidServer / nodeSolidServer/node-solid-server

.acl files not deleted, become unfindable

Open
#1,179 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.8k
Forks
308
PR merge metrics
No merged PRs in 30d

Description

If I delete a file /foo/bar.txt that is controlled by /foo/bar.txt.acl, the .acl file does not get deleted. It becomes invisible because without being able to query /foo/bar.txt's link header, there's no way to know where its .acl should be and .acl files are not discover-able with a GET on a container. This now-unfindable file then prevents us from deleting it's container /foo/ since the container is non-empty and returns 409 on attempt to delete it even though it "looks" empty.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Trace the JavaScript resource-deletion path for a file with a corresponding .acl file, then inspect how container emptiness is determined. Reproduce deletion of /foo/bar.txt and confirm that its /foo/bar.txt.acl is removed or otherwise handled, and that /foo can subsequently be deleted.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.