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
The getResourceInfoWithAccessDatasets method in acp.ts does not return the access datasets as expected.
More specifically, when the resource is ACP-controlled and the policy URL is set in internal_resourceInfo.aclUrl (as is the case with f.i. the Inrupt PodSpaces)
In that case, the internal_fetchAcl method internally receives a AclIsAcrError, and results in null ACLs
However, getResourceInfoWithAccessDatasets ignores the empty ACLs or the AclIsAcrError and returns thinking it is indeed an ACL (L206), and never reaches the fetchAcr call as it should in that case.
Search terms you've used
getResourceInfoWithAccessDatasets
Bug description
The
getResourceInfoWithAccessDatasets
method inacp.ts
does not return the access datasets as expected.More specifically, when the resource is ACP-controlled and the policy URL is set in
internal_resourceInfo.aclUrl
(as is the case with f.i. the Inrupt PodSpaces)In that case, the
internal_fetchAcl
method internally receives aAclIsAcrError
, and results innull
ACLssolid-client-js/src/acl/acl.internal.ts
Lines 93 to 96 in 9cbd59a
However,
getResourceInfoWithAccessDatasets
ignores the empty ACLs or theAclIsAcrError
and returns thinking it is indeed an ACL (L206), and never reaches thefetchAcr
call as it should in that case.solid-client-js/src/acp/acp.ts
Lines 204 to 209 in 9cbd59a
Expected result
Get the ACR datasets as expected when the ACP policy URL is set in
internal_resourceInfo.aclUrl
Actual result
The text was updated successfully, but these errors were encountered: