solid / specification

Solid Technical Reports
https://solidproject.org/TR/
MIT License
486 stars 46 forks source link

PATCH should not create resource #584

Closed CxRes closed 11 months ago

CxRes commented 11 months ago

Currently:

When a successful PUT or PATCH request creates a resource, the server MUST use the target URI to assign the URI to that resource.

This says PATCH can be used to create a resource. I believe this is inconsistent with RFC5789.

CxRes commented 11 months ago

Referring to #68, I am only objecting to doing with PATCH (and is not consistent with existing standards) what can be done with PUT. I have no issue, for example, with intermediate container creation.

CxRes commented 11 months ago

Sorry, I got that wrong (closing)!

Quoting RFC5789:

If the Request-URI does not point to an existing resource, the server MAY create a new resource, depending on the patch document type (whether it can logically modify a null resource) and permissions, etc.