paging through api/issues and hitting api/projects/export_findings
I will not be sharing any of the text as they are issues for internal projects
The api/issues endpoint has a max results of 10,000 so for very large projects exporting from that endpoint doesn’t function. The api/projects/export_findings endpoint returns all issues supposedly, but the count of the issues returned changes with every call.
For example when I query export_findings 10 times in 30 seconds, it returns 8 different totals for issues. I was testing on a project with a little over 5,000 issues just to ensure I didn’t hit any limits. Due to the very short time frame I’m also certain that there was no one in there changing issues or new scans taking place.
It’s not the most thorough field – the one report we got came from 10.0. It hasn’t, to this point, been reproduced on 9.9, but that doesn’t exclude it as a possibility.
Right now, SONAR-20572 hasn’t been backported to SonarQube 9.9 LTS. That’s why I’m suggesting you upgrade a test instance to be sure whether or not this is the bug affecting your instance.