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
{{ message }}
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.
checkAccess allowedAgentsForModes +3ms
checkAccess required mode http://www.w3.org/ns/auth/acl#Read +0ms
checkAccess http://www.w3.org/ns/auth/acl#Read [ 'https://jackson.api.swype.io/profile/card#me' ] undefined +0ms
checkAccess agent check returning false +0ms
checkAccess mode http://www.w3.org/ns/auth/acl#Read is not allowed, but checking for appendOnly now +1ms
checkAccess Access denied! http://www.w3.org/ns/auth/acl#Read access is required for this task, webid is "undefined" +0ms
app errored ErrorResult: error result
at Object.<anonymous> (/home/jackson/pod-server/node_modules/wac-ldp/src/lib/authorization/checkAccess.ts:113:11)
at Generator.next (<anonymous>)
at fulfilled (/home/jackson/pod-server/node_modules/wac-ldp/dist/lib/authorization/checkAccess.js:4:58)
at processTicksAndRejections (internal/process/task_queues.js:85:5) {
resultType: 1
} +16ms
To recreate the folder structure here are the files:
/settings/.acl$.ttl
# ACL resource for the /settings/ container
@prefix acl: <http://www.w3.org/ns/auth/acl#>.
<#owner>
a acl:Authorization;
acl:agent
<https://jackson.api.swype.io/profile/card#me>;
# Set the access to the root storage folder itself
acl:accessTo <./>;
# All settings resources will be private, by default, unless overridden
acl:default <./>;
# The owner has all of the access modes allowed
acl:mode
acl:Read, acl:Write, acl:Control.
# Private, no public access modes
I dug into it a bit and here's the main reason for the problem:
Here the access predicate is acl:default, but the .acl is using acl:defaultForNew. As a result, the aboutThisResource variable is never set here and which prevents the agentMap from being set here.
The following two requests fail with a 401:
It seems the problem is at the access check:
From the console:
To recreate the folder structure here are the files:
/settings/.acl$.ttl
/settings/prefs.ttl
/settings/privateTypeIndex.ttl
The text was updated successfully, but these errors were encountered: