-
Bug
-
Resolution: Fixed
-
Low
-
8.9.0, 7.19.21, 8.5.8
-
38
-
Severity 2 - Major
-
582
-
Issue Summary
This issue relates to general paginated results.
Requesting data from an endpoint such as /rest/api/space or rest/api/content causes Confluence to return more data than available.
This is reproducible on Data Center: yes
Steps to Reproduce
- Request /rest/api/space to collect all of the spaces available without using ?expand parameter;
- Verify that Confluence returns the exact amount of spaces that exist in the instance;
- Now add the ?expand parameter, for example:
Expected Results
Using ?expand produces the same array as without it, except that it expands the required fields.
Actual Results
Using ?expand causes Confluence to keep returning data past the available amount, which breaks apps that loop through the resulting array.
Workaround
Currently there is no known workaround for this behavior. But if you have Comala Document management app and noticed that the REST calls are related to Comala like below:
https://ConfluecneBaseURL/rest/cw/2/report/search?cql=awphasworkflow%3Dtrue%20AND%20space%20IN%20(%22TE%22)%20AND%20state%20IN%20
Then Comala Tech has shared few steps to lower the CPU usage. Basically, number of items to be displayed in the report should be 11 or less. Below are the steps recommended by Comala tech.
- Go to a page where you have the Document States Report macro failing
- Edit the page
- Edit the macro and modify the value of “Number of items to display” and set it to “11”
- Save the page
- Check if the report is rendered successfully
- causes
-
CONFSERVER-56297 Lots of SQL queries issued for REST GET Content
- Gathering Interest
- is duplicated by
-
CONFSERVER-95396 Confluence REST API Pagination Issue: Inconsistencies in Pagination Functionality
-
- Closed
-
-
CONFSERVER-95312 REST API endpoint api/space doesn't respect 'start' parameter
-
- Closed
-
- follows
-
VULN-1266006 Failed to load
- mentioned in
-
Page Failed to load
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
A fix for this issue is available in Confluence Server and Data Center 8.5.9.
Upgrade now or check out the Release Notes to see what other issues are resolved.