Skip to content

Pass expand via params in ConfluenceServer.get_page_space - #1664

Open
Steve0x2a wants to merge 1 commit into
atlassian-api:masterfrom
Steve0x2a:fix/get-page-space-expand
Open

Pass expand via params in ConfluenceServer.get_page_space#1664
Steve0x2a wants to merge 1 commit into
atlassian-api:masterfrom
Steve0x2a:fix/get-page-space-expand

Conversation

@Steve0x2a

Copy link
Copy Markdown

Summary

  • ConfluenceServer.get_page_space was calling get_content(..., expand="space"), which forwarded expand into AtlassianRestAPI.get(). That method does not accept expand, so 5.0.0+ raises TypeError.
  • Pass params={"expand": "space"} on GET content/{page_id}, matching Cloud and other Server helpers.
  • Add a test that goes through the real get() / session path.

Credit @TechVoyager.

Fixes #1663.

Fixes TypeError on 5.0.0+ where get() no longer accepts expand=.
Credit @TechVoyager. Fixes atlassian-api#1663.
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

Successfully merging this pull request may close these issues.

[ConfluenceServer] TypeError when calling get_page_space() in version >5.0.0

1 participant