Issue with the confluence cloud API

There is a bug when a cursor is returned from the “/api/v2/spaces” confluence cloud endpoint where an ‘=’ character is returned at the end of the cursor key. Im assuming that is not intentional as it is not documented anywhere I can see.

Steps to recreate:
make a request to the endpoint “/api/v2/spaces” with a limit so that the cursor is returned (I used {“limit”: 2})

when the response is received the response.links.get(“next”) will return a link that has a query parameter of cursor that has an ‘=’ at the end occasionally

Mitigation:
strip the string of ‘=’ and it seems to function correctly.

Thanks for raising this, @kennybean.

If you haven’t done so, for bug (and potential bug) reports, kindly raise them in the Developer and Marketplace Support portal so that it can be triaged accordingly.

Cheers,
Ian

Issue was created:
ECOHELP-54486

1 Like