-
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...
[CONFSERVER-95272] REST API pagination (eg, /rest/api/space) returns more data than available
Labels | Original: blocking-7.19.22 blocking-8.5.9 blocking-8.9.1 ecohelp release-blocker resolved-in-vf sec-escape security security-escape security-imported vuln-ticket-was-closed | New: blocking-7.19.22 blocking-8.5.9 blocking-8.9.1 ecohelp release-blocker resolved-in-vf sec-escape security security-imported vuln-ticket-was-closed |
Labels | Original: blocking-7.19.22 blocking-8.5.9 blocking-8.9.1 ecohelp release-blocker resolved-in-vf security security-escape security-imported vuln-ticket-was-closed | New: blocking-7.19.22 blocking-8.5.9 blocking-8.9.1 ecohelp release-blocker resolved-in-vf sec-escape security security-escape security-imported vuln-ticket-was-closed |
Remote Link | New: This issue links to "Page (Extranet)" [ 942341 ] |
Remote Link | New: This issue links to "Page (Extranet)" [ 936965 ] |
Fix Version/s | New: 8.5.11 [ 108690 ] |
Remote Link | New: This issue links to "Page (Confluence)" [ 930024 ] |
Description |
Original:
h3. 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 h3. 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: ## [https://fqdn/rest/api/space?expand=description.plain&limit=1&start=999] h3. Expected Results Using {{?expand}} produces the same array as without it, except that it expands the required fields. h3. Actual Results Using {{?expand}} causes Confluence to keep returning data past the available amount, which breaks apps that loop through the resulting array. h3. 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: {code:java} https://XXXXXXXXXX/rest/cw/2/report/search?cql=awphasworkflow%3Dtrue%20AND%20space%20IN%20(%22TE%22)%20AND%20state%20IN%20 {code} 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 |
New:
h3. 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 h3. 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: ## [https://fqdn/rest/api/space?expand=description.plain&limit=1&start=999] h3. Expected Results Using {{?expand}} produces the same array as without it, except that it expands the required fields. h3. Actual Results Using {{?expand}} causes Confluence to keep returning data past the available amount, which breaks apps that loop through the resulting array. h3. 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: {code:java} https://ConfluecneBaseURL/rest/cw/2/report/search?cql=awphasworkflow%3Dtrue%20AND%20space%20IN%20(%22TE%22)%20AND%20state%20IN%20 {code} 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 |
Description |
Original:
h3. 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 h3. 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: ## [https://fqdn/rest/api/space?expand=description.plain&limit=1&start=999] h3. Expected Results Using {{?expand}} produces the same array as without it, except that it expands the required fields. h3. Actual Results Using {{?expand}} causes Confluence to keep returning data past the available amount, which breaks apps that loop through the resulting array. h3. 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: {code:java} https://confluenceBaseURL/rest/cw/2/report/search?cql=awphasworkflow%3Dtrue%20AND%20space%20IN%20(%22TE%22)%20AND%20state%20IN%20 {code} 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 |
New:
h3. 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 h3. 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: ## [https://fqdn/rest/api/space?expand=description.plain&limit=1&start=999] h3. Expected Results Using {{?expand}} produces the same array as without it, except that it expands the required fields. h3. Actual Results Using {{?expand}} causes Confluence to keep returning data past the available amount, which breaks apps that loop through the resulting array. h3. 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: {code:java} https://XXXXXXXXXX/rest/cw/2/report/search?cql=awphasworkflow%3Dtrue%20AND%20space%20IN%20(%22TE%22)%20AND%20state%20IN%20 {code} 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 |
Description |
Original:
h3. 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 h3. 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: ## [https://fqdn/rest/api/space?expand=description.plain&limit=1&start=999] h3. Expected Results Using {{?expand}} produces the same array as without it, except that it expands the required fields. h3. Actual Results Using {{?expand}} causes Confluence to keep returning data past the available amount, which breaks apps that loop through the resulting array. h3. 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: {code:java} https://confluence.generali.at/rest/cw/2/report/search?cql=awphasworkflow%3Dtrue%20AND%20space%20IN%20(%22TE%22)%20AND%20state%20IN%20 {code} 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 |
New:
h3. 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 h3. 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: ## [https://fqdn/rest/api/space?expand=description.plain&limit=1&start=999] h3. Expected Results Using {{?expand}} produces the same array as without it, except that it expands the required fields. h3. Actual Results Using {{?expand}} causes Confluence to keep returning data past the available amount, which breaks apps that loop through the resulting array. h3. 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: {code:java} https://confluenceBaseURL/rest/cw/2/report/search?cql=awphasworkflow%3Dtrue%20AND%20space%20IN%20(%22TE%22)%20AND%20state%20IN%20 {code} 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 |
Description |
Original:
h3. 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 h3. 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: ## [https://fqdn/rest/api/space?expand=description.plain&limit=1&start=999] h3. Expected Results Using {{?expand}} produces the same array as without it, except that it expands the required fields. h3. Actual Results Using {{?expand}} causes Confluence to keep returning data past the available amount, which breaks apps that loop through the resulting array. h3. 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: {code:java} https://confluence.generali.at/rest/cw/2/report/search?cql=awphasworkflow%3Dtrue%20AND%20space%20IN%20(%22TE%22)%20AND%20state%20IN%20 {code} Then Comala Tech has actually provided workaround and it helped lower down the CPU usage. # 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 |
New:
h3. 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 h3. 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: ## [https://fqdn/rest/api/space?expand=description.plain&limit=1&start=999] h3. Expected Results Using {{?expand}} produces the same array as without it, except that it expands the required fields. h3. Actual Results Using {{?expand}} causes Confluence to keep returning data past the available amount, which breaks apps that loop through the resulting array. h3. 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: {code:java} https://confluence.generali.at/rest/cw/2/report/search?cql=awphasworkflow%3Dtrue%20AND%20space%20IN%20(%22TE%22)%20AND%20state%20IN%20 {code} 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 |