-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify recursive container creation on POST, PATCH and PUT #68
Comments
Some clarifying questions:
I would note that a RESTful design would tend to avoid side affects: i.e. a |
@acoburn Yeah, I just meant 'current NSS behavior' (I edited the comment to clarify).
In nss, yes, and I believe a lot of @timbl's Data Browser / mashlib code relies on this functionality. As in, this is not incidental, but definitely part of the spec.
Right, ok, I just double checked, and NSS currently does return a 404 / target url does not exist. Can definitely confirm that NSS PUT does create intermediate containers, |
Indeed, but the implications of the slash semantics design seems to require this behaviour. |
Absolutely. My code uses this a lot. To add a chat message to a file in a dated set of files like We need it well documented and also well documented that it will also the file itself. |
I just looked into what databrowser does when creating a container, and it seems to always create a resource, even if it doesn't need it, e.g., from the server log:
Is this behaviour intended? Shouldn't it be possible to create an empty container? |
Security follow-up on the current resolution in #129. |
As was mentioned in the semantics of PUT discussion, we need to decide on a consistent policy for recursive container creation for various resource types (Resources and Containers) and via the 3 major creation verbs (PUT, PATCH and POST).
(Also sometimes referred to as
mkdir -p
semantics)Current behavior (in Node Solid Server):
.meta
404 Not Found
.mkdir -p
style).The text was updated successfully, but these errors were encountered: