Details
-
Bug
-
Resolution: Unresolved
-
High
-
4
-
Severity 2 - Major
-
25
-
Description
Issue Summary
The Get all labels endpoint fails with a 500 status, even when using pagination containing small batches. This is due to a timeout on the backend when an instance has a high number of label associations along with the permission query that it needs to perform as part of the endpoint.
Steps to Reproduce
- Execute the API on the site having large number of Labels
- It has been observed that the search will fail if the number of labels are > 1,00,000 distinct labels
Expected Results
The endpoint should bring the referred labels, paginated as expected, or even without pagination.
Actual Results
Internal logs show that the 500 status is due to a timeout on the permission query it needs to perform, as it's very complex
Workaround
No workaround available.The search is failing even with the maxResults.