Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implemented real webac delegate + unit tests #29

Closed
wants to merge 2 commits into from
Closed

implemented real webac delegate + unit tests #29

wants to merge 2 commits into from

Conversation

acoburn
Copy link
Contributor

@acoburn acoburn commented Sep 6, 2015

This implements a mostly-working WebAC delegate, based on the values produced by the WebACRolesProducer in #28

Some outstanding issues include:

  • Resources with an acl:accessControl declaration (and corresponding Acl/Authorizations that apply to the principal) do not permit access, but child resources do.
  • Binary resources seem to behave a bit differently. We will need some additional logic for handling them.

This has been tested manually with webapp-plus.

final Map<String, String> map = new HashMap<>();
// WEBAC_MODE_READ Permissions
map.put(READ, WEBAC_MODE_READ_VALUE);
// WEBAC_MODE_WRITE Permissions
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably should include "DELETE" and "UPDATE" as subclasses of "WRITE", as discussed in meetings.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't believe there exist DELETE or UPDATE actions (but c.f. REMOVE and SET_PROPERTY). The full list of MODE permissions are here: http://git.io/vZUuD (github) and http://docs.jboss.org/modeshape/4.2.0.Final/api/org/modeshape/jcr/ModeShapePermissions.html (javadocs)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@acoburn
Copy link
Contributor Author

acoburn commented Sep 6, 2015

@awoods fixed typo and clarified code comment.

@awoods
Copy link
Member

awoods commented Sep 7, 2015

Resolved with: 7e5b14d

@awoods awoods closed this Sep 7, 2015
@acoburn acoburn deleted the real_delegate_impl branch September 7, 2015 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants