Bug: When attributes are fetched using pagination pages can be empty or not full when items are skipped #9175
Labels
needs triage
This issue has been automatically labelled and needs further triage
Expected behavior
When artifacts are fetched and enough attributes are available for the selected time, each page should be full except the last one.
This behavior is also expected when some attributes are skipped due enforceWarninglist or excludeDecayed.
Actual behavior
The amount of specified items for the specific page are fetched from the database and in the for loop each attribute which should be filtered is skipped. So the amount of returned attributes may be lower as the requested page size while matching attributes may exist on the next page.
Steps to reproduce
Fetch attributes using the REST API and use one of the filter, if there are some attributes which are skipped on one of the pages, the affected page has not as much attributes as requested.
Version
2.4.172
Operating System
CentOS
Operating System version
8
PHP version
7.4.30
Browser
No response
Browser version
No response
Relevant log output
No response
Extra attachments
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: