core icon indicating copy to clipboard operation
core copied to clipboard

[DEFECT] Tag Resource ignores filter parameter and returns all tags

Open erickgonzalez opened this issue 1 year ago • 3 comments

Problem Statement

The Tag Resource endpoint is not respecting the provided filter parameter, causing it to return all tags instead of the expected filtered subset. This impacts any customer or internal service relying on filtered tag retrieval for UI components, search, categorization, or conditional logic. Severity: Medium — functionality works but returns incorrect data, leading to inconsistent behavior across consuming systems.

More info: https://dotcms.slack.com/archives/C0893BF7GRJ/p1763676826119599

Steps to Reproduce

https://github.com/user-attachments/assets/25935eb9-1635-4de0-bbe0-448e81cf17f5

Acceptance Criteria

• Tag Resource correctly applies the filter parameter and returns only matching tags. • Behavior is validated with automated tests covering positive, negative, and edge-case filters. • No regression: endpoints without filters continue returning the full dataset.

dotCMS Version

demo (25.11.20)

Severity

Medium - Some functionality impacted

erickgonzalez avatar Nov 21 '25 14:11 erickgonzalez

frontend is calling /api/v2/tags?name=bea which is basically returning all the tags, not filtering. Actually, query param name was changed to filter recently,

this will work correctly: /api/v2/tags?filter=bea

hassandotcms avatar Nov 21 '25 15:11 hassandotcms

PRs linked to this issue

github-actions[bot] avatar Apr 07 '26 21:04 github-actions[bot]

QA PASSED ✅

Image

adrianjm-dotCMS avatar Apr 21 '26 19:04 adrianjm-dotCMS