Unable to see few assets scanning - Data Security> Confluence
412
Created On 07/30/25 21:31 PM - Last Modified 10/24/25 22:04 PM
Symptom
When a user uploads an asset to a designated space, Data Security fails to pick up the file for scanning.
Environment
SaaS Security
Data Security
Cause
Currently, the API scans the first page of paginated API responses for spaces because the pagination query parameter that is used has been deprecated.
Resolution
- Improving pagination logic by using the correct query parameter mentioned in the documentation to fetch all the pages of the paginated API response.
- Currently Pagination for Confluence APIs is done using start and limit parameter, but should implement this pagination using the cursor link in the payload for the Pages and Spaces API. There is no start parameter supported for the v2 APIs as mentioned in Official Documentation.
Spaces: https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space/#api-spaces-get
Pages: https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-get
- This issue could have been prevented by doing more rigorous load testing by creating multiple spaces and checking whether all of them are scanned.
- Have to use the cursor query parameter sent in the payload to fetch paginated response.