Skip to content

@RolesAllowed doesn't respect comma escapes in property values #37390

@coiouhkc

Description

@coiouhkc

Describe the bug

When using @RolesAllowed("${admin}") syntax, cannot use LDAP groups as roles, since comma escaping in property value (to prevent parsing it as list instead of single entry).

Also related (initial implementation?): #33982

See https://quarkusio.zulipchat.com/#narrow/stream/187030-users/topic/.E2.9C.94.20RolesAllowed.20annotation.20value.20containing.20comma

Expected behavior

Escape syntax of smallrye-config is respected

Actual behavior

Escape syntax of smallrye-config is respected

How to Reproduce?

See linked PR for additional test.

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions