Skip to content

WAC: getWac() incorrectly shows permissions that are not inherited. #112

Description

@mrkvon

This is related to #83, but distinct issue.

I have a leaf resource (within a container — maybe this doesn't matter), both without their own .acl, and this is within another container with its own .acl:

<#public>
    a acl:Authorization;
    acl:agentClass foaf:Agent;
    acl:accessTo <./>;
    acl:mode acl:Read.

<#owner> <some> <rdf>.

Please note the lack of <#public> acl:default <./>., which makes this rule not inherited by child resources.

When I getWac() on the leaf resource, I receive this WacRule:

{
  public: { read: true, write: false, append: false, control: false },
  agent: { myWebId: { read: true, write: true, append: false, control: true } },
  authenticated: { read: false, write: false, append: false, control: false }
}

but I'd expect it to be

{
  public: { read: ==>false<==, write: false, append: false, control: false },
  ...the rest is the same
}

because it doesn't inherit the public readability from its ancestor container.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions