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

Enable retrieval of ACL containing unspported ACEs #951

Merged
merged 2 commits into from
Apr 23, 2018

Conversation

matthiasblaesing
Copy link
Member

@matthiasblaesing matthiasblaesing commented Apr 23, 2018

As discussed in #947 this is the agreed upon successor.

James Howard and others added 2 commits April 23, 2018 20:08
If an ACL contained supported (ACCESS_ALLOWED_ACE_TYPE, ACCESS_DENIED_ACE_TYPE)
and unsupported types (i.e. ACCESS_ALLOWED_CALLBACK_ACE_TYPE) the constructor
threw an IllegalArgumentException.

The extraction logic for the ACEs was moved to the accessor function and
unsupported ACEs are skipped.
Instead of throwing an Exception or skipping ACEs, alle ACEs in an ACL
are returned. If the ACE is an unsupported type, the base structure
of all ACEs (ACE_HEADER) is returned.

Users of the ACEs contained in the ACL need to check the type and
downcast appropriately.
@matthiasblaesing matthiasblaesing merged commit 8a6257e into java-native-access:master Apr 23, 2018
@matthiasblaesing matthiasblaesing deleted the pr947 branch April 23, 2018 20:07
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.

1 participant