For cql=type=page the pagination works fine.
But when cql='lastModified>="2020/11/10" is passed it fails with the following error :
CQL was parsed but the search manager was unable to execute the search. CQL: 'lastModified>=\"2020/11/10\"'. Error message: com.atlassian.confluence.search.searchnsmarts.rest.SSSearchClientException: There was an illegal request passed to S&S Content Search API : HTTP/1.1 400 "}
Is this a REST API issue?
On drilling down on this, figured out that the cursor generated for the next page when the cql='lastModified>="2020/11/10" is passed, contains a "%2B" character set, which passed in the REST call gets encoded to "+".
In order to fix this, I had to escape the %2B in the cursor by replacing it with %252B.
Ideally, cursors sent by Atlassian should not have standard urlencode character-set , as these are passed in the resource path of the API.
Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond. A long time favorite, Team Cale...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events