confluence.get_space_permissions(space_key) gives 404
Dear maintainers,
The python function confluence.get_space_permissions(space_key) seems broken. We get a 404 HTTPError:
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://mysite.atlassian.net/wiki/rpc/json-rpc/confluenceservice-v2
If we do the same via REST API call, the call works correctly. Could it be that the JSON-RPC calls no longer work, as Atlassian says it is deprecated: https://developer.atlassian.com/server/confluence/confluence-json-rpc-apis/:
The JSON-RPC API is deprecated since Confluence 5.5. Confluence has a new REST API that is progressively replacing our existing APIs. We recommend plugin developers use the new REST APIs where possible.
Kind regards, M. Tallandtree.
Thanks for reporting it. I looked into the code and it looks like we have more methods based on deprecaated json-rpc api which should be refactored to currently supported endpoints. methods that require refreshing: confluence: add_user confluence: change_user_password confluence: change_my_password confluence: remove_space_permission confluence: get_space_permissions
@tallandtree @gkowalc deployed the release with all methods https://github.com/atlassian-api/atlassian-python-api/commit/15b9d6536bb3a6e79ac0a46921ad8068b40ad4c7