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

Make the n-of function determinate. #24

Open
steven-legg opened this issue May 20, 2024 · 1 comment
Open

Make the n-of function determinate. #24

steven-legg opened this issue May 20, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@steven-legg
Copy link

It really annoys me (in particular because it thwarts my attempts at efficient policy indexing) that the n-of function evaluates to Indeterminate if the first argument (an integer) is greater than the number of remaining Boolean arguments . Clearly something like 6 out of 5 (remaining arguments) can't be satisfied even if they are all True, so the overall result ought to be False rather than Indeterminate. The definition of the function is also quiet about N < 0. I would say that N <= 0 will always result in True.

The URI is:

urn:oasis:names:tc:xacml:1.0:function:n-of

A revised function could be added to both XACML 3.0 and XACML 4.0

urn:oasis:names:tc:xacml:3.0:function:n-of

and the old definition retained for backward compatibility.

@steven-legg steven-legg added the enhancement New feature or request label May 20, 2024
@humantypo
Copy link

If I recall correctly, it was decided that Indeterminate was the appropriate response because the Policy is technically invalid and that since Policy validation was deemed an implementation issue, this was the only way to "call out" in the spec. Not advocating that we keep it that way, just context...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants