You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I want to remove public read ACL permissions from a resource using the semapps authProvider (removePermission('foaf:Agent', 'acl:agentClass', 'acl:Read');, this fails for me.
The client performs a PUT request on the acl resource which results in an empty ACL resource (at least after filtering in the backend).
Here, all default records are filtered and the result is then replaced with the PUT. Is that intended? When I don't filter them, I get this error: The rights cannot be changed because they are incorrect (triggered in webacl.resource.setRights).
Permissions management is buggy in many ways, this is why we plan to refactor it entirely in v3
Currently the code prevents a acl:Authorization to be empty. I see it's the same for the PATCH operation. I don't know if it would work if we allowed empty authorizations.
When I want to remove public read ACL permissions from a resource using the semapps authProvider (
removePermission('foaf:Agent', 'acl:agentClass', 'acl:Read');
, this fails for me.The client performs a
PUT
request on the acl resource which results in an empty ACL resource (at least after filtering in the backend).The frontend place:
semapps/src/frontend/packages/auth-provider/src/authProvider.js
Lines 353 to 370 in 3839548
Here, all default records are filtered and the result is then replaced with the
PUT
. Is that intended? When I don't filter them, I get this error:The rights cannot be changed because they are incorrect
(triggered inwebacl.resource.setRights
).In the backend, it fails here:
semapps/src/middleware/packages/webacl/services/resource/actions/setRights.js
Line 21 in d1620eb
I suppose,
setRights
should check for something like arightsToRemove
as well?The text was updated successfully, but these errors were encountered: