Open kkosciusz opened 2 years ago
I"m getting this issue when trying to recursively delete pages confluence.remove_page(page['id'], recursive=True)
requests.exceptions.MissingSchema: Invalid URL 'rest/api/content/55512784/child/page?limit=25&start=25': No scheme supplied. Perhaps you meant http://rest/api/content/55512784/child/page?limit=25&start=25?
It seems that this depends on the used endpoint. With #990 this was fixed.
When using
get_child_pages()
orget_page_child_by_type()
withoutstart
orlimit
parameters the_get_paged()
helper method fails to continue with pagination and constructs invalid request:Based on examples provided in the server REST API (https://developer.atlassian.com/server/confluence/pagination-in-the-rest-api/) and in cloud REST API (https://developer.atlassian.com/cloud/confluence/rest/api-group-search/#api-wiki-rest-api-search-get) the
next
link is relative, not absolute:It seems that
_get_paged()
should make requests withabsolute = False
or construct the url asbase + next
.The change was introduced in https://github.com/atlassian-api/atlassian-python-api/pull/937 by @Spacetown