Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

confluence.get_space_permissions(space_key) gives 404 #1371

Open
tallandtree opened this issue Apr 17, 2024 · 1 comment
Open

confluence.get_space_permissions(space_key) gives 404 #1371

tallandtree opened this issue Apr 17, 2024 · 1 comment

Comments

@tallandtree
Copy link

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.

@gkowalc
Copy link
Contributor

gkowalc commented Apr 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants