When pulling a contentlet via the API that has a category field, if the category does not have CMS Anonymous view permissions it is not included in the API response.
This is accompanied by a WARN message in the dotCMS logs
WARN strategy.DefaultTransformStrategy - An error occurred when adding Categories to Contentlet with ID '68434398-fa40-410a-89ac-3fad66f28630': User 'anonymous' doesn't have READ permission on Category 'dd98af23-c4ac-472b-aed4-60d67a797469'
Steps to Reproduce
From a demo starter, remove CMS Anonymous permissions from the 'Product Line' category
Pick a product from the contentlet search
Go to this History tab and click 'JSON' to get the API response
The Category field will not be included, and your logs will show the WARN message
Acceptance Criteria
Categories should be pulled based the permissions of the user that is making the API call and not CMS Anonymous
dotCMS Version
master, 23.10, 23.01
Proposed Objective
Technical User Experience
Proposed Priority
Priority 2 - Important
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
Parent Issue
No response
Problem Statement
When pulling a contentlet via the API that has a category field, if the category does not have CMS Anonymous view permissions it is not included in the API response.
This is accompanied by a WARN message in the dotCMS logs
Steps to Reproduce
Acceptance Criteria
dotCMS Version
master, 23.10, 23.01
Proposed Objective
Technical User Experience
Proposed Priority
Priority 2 - Important
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
Customer ticket
Assumptions & Initiation Needs
No response
Quality Assurance Notes & Workarounds
No response
Sub-Tasks & Estimates
No response