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 }}
Repository navigation
createAclFromFallbackAcl copies over a default block that confuses NSS #1035
When using createAclFromFallbackAcl on a document, it copies over acl:default triples (which only apply to containers), which it seems to do so by creating separate blocks for acl:accessTo and acl:default.
This confuses NSS, which then blocks access to the document under certain circumstances.
Thanks for reporting that Ruben. As far as I can see it should add both acl:accessTo and acl:default to the same Rule, so that's something to investigate indeed.
I suppose we should also report this as a bug against NSS? Even with the creation of separate Rules, I don't see anything in the spec that says that that shouldn't work, I think?
I do not understand why createAclFromFallbackAcl do not filter out acl:default predicate when creating a non container ACL.
It probably doesn't know whether it's creating an ACL for a document or a container without making a network request first.
Anyhow can under certain circumstances be more explicit or at least have an example of the ACL created.
Unfortunately, I'm just the messenger here. I've observed the bug happen in someone else's environment, and saw that removing default made it work. The root cause is that the ACL parsing code is not very optimal, I'm afraid.
Since PUT to create a container has been added to NSS a strict enforcement of / semantic has been implemented. No example of missing case has been reported either by test or user, but never say never.
Activity
Vinnl commentedon May 12, 2021
Thanks for reporting that Ruben. As far as I can see it should add both
acl:accessToandacl:defaultto the same Rule, so that's something to investigate indeed.I suppose we should also report this as a bug against NSS? Even with the creation of separate Rules, I don't see anything in the spec that says that that shouldn't work, I think?
RubenVerborgh commentedon May 12, 2021
Yes: nodeSolidServer/node-solid-server#1596
However, the "circumstances" mentioned above are hard to reproduce, so probably a lot of effort to fix there.
bourgeoa commentedon May 12, 2021
I do not understand why
createAclFromFallbackAcldo not filter out acl:default predicate when creating a non container ACL.Anyhow can
under certain circumstancesbe more explicit or at least have an example of the ACL created.RubenVerborgh commentedon May 12, 2021
It probably doesn't know whether it's creating an ACL for a document or a container without making a network request first.
Unfortunately, I'm just the messenger here. I've observed the bug happen in someone else's environment, and saw that removing
defaultmade it work. The root cause is that the ACL parsing code is not very optimal, I'm afraid.bourgeoa commentedon May 12, 2021
This is not possible the acl:accessTo object points to a document or a container.
RubenVerborgh commentedon May 12, 2021
Indeed. And how do you find out which of those that is? You ask the server 🙂
bourgeoa commentedon May 13, 2021
You can use the
/semantic which is a MUSTRubenVerborgh commentedon May 13, 2021
The server normalizes though. Not sure how strictly we are enforcing yet.
bourgeoa commentedon May 13, 2021
Since PUT to create a container has been added to NSS a strict enforcement of
/semantic has been implemented. No example of missing case has been reported either by test or user, but never say never.