Skip to content

Conversation

@chdwlch
Copy link
Contributor

@chdwlch chdwlch commented Feb 24, 2020

This is a fix for a bug that makes the Confluence library think that every page needs to be updated.
The 'title' key does not exist in the dictionary returned by get_page_by_id() with expand set to 'body.storage', so current_title in the title comparison always evaluates to None.

I moved the title check before the body check and removed the expanded option from get_page_by_id so we can access the correct title value.

Tested against Confluence 6.13.8

@chdwlch chdwlch requested a review from gonchik February 24, 2020 23:44
@chdwlch chdwlch force-pushed the bugfix/title-comparison branch from 600d85c to e98f2ed Compare February 24, 2020 23:56
@gonchik gonchik merged commit a9cd149 into atlassian-api:master Feb 25, 2020
@gonchik
Copy link
Member

gonchik commented Feb 25, 2020

Good caught!
Thank you for your help!

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.

2 participants