Skip to content

fix: match group prefix and suffix literally #134

Closed

Description

@uniqueg

With the auth profile, TESK API recognises team groups and team admin groups with a regular expression built from the configured group prefix, base group, admin subgroup and group suffix (ElixirPrincipalExtractor). These configured parts go into the expression as they are, so characters that have a meaning in regular expressions are not matched literally. For example, the . in the default prefix urn:geant:elixir-europe.org:group:elixir: and suffix #perun.elixir-czech.cz matches any character, so a group name that differs from the configured one only at such a position counts as the configured team or team admin group.

Expected: the configured parts are matched literally, so that only the exact group names count; only the team name between them stays a pattern (anything without :).

Fix: quote the configured parts with Pattern.quote, add unit tests for near-identical names and for the exact names, and say in the docs that the names are matched literally.

Activity

  1. added this to the v1.2.0 milestone on Nov 9, 2026
  2. added
    type: bug
    priority: high
    status: in progress
    workload: hours
    on Nov 9, 2026
  3. added 3 commits that reference this issue on Nov 9, 2026
    69b1918
    3988cbe
    c83c83e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: highstatus: in progresstype: bugworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions