Closed bourgeoa closed 3 years ago
This excerpt from the spec is relevant for this discussion, from http://solid.github.io/web-access-control-spec/#aclappend: ... some implementations may also extend this mode to cover non-overwriting PUTs, ...
My understanding of this tidbit is that al long as the contents of the original is not changed, it is considered an append operation and not an overwrite. I do agree that would be better to remove this test because it states that 'some implementations may ...' - it should not be a requirement to implement this to pass the tests.
Thanks for pointing this. This is not in line with @csarven position. But as you quoted a MAY should not be a requirement to pass the tests.
Hrm, I failed to point out that the test modification is incorrect: it('Is disallowed with default Read+Append+Control access on parent', async () => { ... continues to put 'hello world' on a resource previously containing 'hello'.
as per spec, the server MAY allow this with Append, so the test should not fail when it is a non-overwriting PUT as described before.
This is following the discussion on https://gitter.im/solid/test-suite
and a new proposal to edit in tests the PATCH success to allow 2xx for 200 or 201, like in other places in the tests.