Skip to content

is expression does not parse when the entity type is a variable name #558

@john-h-kastner-aws

Description

@john-h-kastner-aws

Before opening, please confirm:

Bug Category

Cedar Parser

Describe the bug

In the following expressions, the entity uid parses correctly but we fail to parse the is expression because we treat the right side as an variable expression instead of an entity type name. These expressions should parse without error.

principal::"foo" is principal
action::"foo" is action
resource::"foo" is resource
context::"foo" is context

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.1Features for 3.1bugSomething isn't working. This is as high priority issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions