node-solid-server
node-solid-server copied to clipboard
DELETE owner should be forbidden
https://solidproject.org/TR/protocol#storage
Servers MUST keep track of at least one owner of a storage in an implementation defined way.
Owner is implemented as a triple in root/.meta
- root/.meta should not be deleted
- owner defining triple must exist
You mean, that triple should be considered write-protected. Yes.
Should the whole ~/.meta file be write-protected?
Should the whole ~/.meta file be write-protected?
No it may have other usages.
~/.meta must contain an owner triple. In term of REST methods there are 2 different things :
- /.meta cannot be deleted : DELETE is forbidden
- it must contain an owner triple : PUT and PATCH must check that : -- the owner triple exist, -- and if possible that the owner is valid
What is a valid owner => with actual specification I suppose it must be a valid webId How can we check that the webId is valid ? -- do nothing. -- expect it is an existing URI with fetch -- check for authorization