inrupt / inrupt/solid-client-js
Support appending to file without read/write access
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 245
- Forks
- 42
- Avg merge
- 12h 49m
- Merged PRs (30d)
- 22
Description
Search terms you've used
I've searched for "patch" and "append"
Feature suggestion
The Solid rest-api describes that we can use a PATCH request to append data with SPARQL. I would like to see an implementation of this, which allows appending a Thing to a specific file with only append access.
Expected functionality/enhancement
Something along await appendToFile(url, thing). I'm not very familiar to the solid-client API, so there may be a better solution.
Actual functionality/enhancement
Currently it seems possible to update a file only if one has read and write access.
Use Cases
I would use it to let people append themself to secret groups.
Indirectly this allows granting access to a file shareMe.txt via a link:
- create file
myGroupwhere everbody can append, but not read (so the content is secret) - give a group with a cryptographically random name (
asdfasdf) access toshareMe.txt - create a Link which contains the random name (
https://example-sharer.com/#key=asdfasdf) - anybody with this link can append themself to group
asdfasdfand thus has access toshareMe.txt
Additional information
Contributor guide
No contributing guide indexed for this repository
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 with the Solid REST API PATCH specification linked in the issue and the current file-update entry point in solid-client-js. Clarify how an appendToFile(url, thing)-style operation should work with append-only access, including the expected permission behavior. Done means the library supports the requested append operation without read access and covers its behavior with tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100