Skip to content

Bug: Precedence Operator #18

Description

@independentid

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions