atlassian-python-api icon indicating copy to clipboard operation
atlassian-python-api copied to clipboard

confluence.get_space_permissions(space_key) gives 404

Open tallandtree opened this issue 1 year ago • 1 comments

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.

tallandtree avatar Apr 17 '24 12:04 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

0x89g09sa823 avatar Apr 18 '24 18:04 0x89g09sa823

@tallandtree @gkowalc deployed the release with all methods https://github.com/atlassian-api/atlassian-python-api/commit/15b9d6536bb3a6e79ac0a46921ad8068b40ad4c7

gonchik avatar Mar 31 '25 08:03 gonchik