Skip to content

graph: GET /extensions/org.libregraph/tags returns an arbitrary, unstably ordered subset of 100 tags #3889

Closed

Description

@pbleser-oc

When more than 100 distinct tags are in use, GetTags returns an arbitrary 100 of them, and the order of the list changes between calls.

GetTags collects the tags of all search results into one tags.Tags object. That type is meant for the tags of a single resource: it stops accepting tags at 100 without an error, and it puts every new tag in front of the existing ones. So which 100 tags are returned depends on the order of the search results, and so does the order of the list.

Fix: collect the distinct tags, sort them in byte order (the order in which search engines sort keyword values), and then cut the list at a documented constant of 100, so the result is deterministic and its size stays bounded.

Activity

  1. added theissue type on Nov 3, 2026
  2. moved this from Qualification to Prio <= 3 in OpenCloud Team Boardon Nov 3, 2026
  3. added a commit that references this issue on Nov 18, 2026
    f452483
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

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions