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

Bug: Precedence Operator #18

Open
independentid opened this issue Nov 19, 2022 · 0 comments
Open

Bug: Precedence Operator #18

independentid opened this issue Nov 19, 2022 · 0 comments

Comments

@independentid
Copy link

Precedence (brackets) seem to be ignored when parsing a filter like (ignore the non scim attributes):
expression := "( username eq \"test\" or request.path sw \"/finance\" ) and subject eq \"abc\""

Calling filter.ParseFilter([]byte(expression)) returns a filter.Expression result whose string value is:
username eq "test" or request.path sw "/finance" and subject eq "abc"

I have tried having spaces between brackets ("(") and content as well as no spaces.

I notice that the test does not actually validate the result, it just tests for no detected errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant