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

[Confluence] update_or_create doesn't respect parent_id

Open amirgon opened this issue 3 years ago • 0 comments

update_or_create calls page_exists and get_page_id regardless of the parent_id argument that was specified.
These in turn search for a page according to "title" anywhere in the space.

When "title" already appears (on a different hierarchy), update_or_create finds the "title" on the space, instead of the title under the specified parent_id.

As a result, when a title exists as a child of another page, it would be overwritten and moved to another parent instead of creating a new page or returning some error.

amirgon avatar Mar 29 '22 08:03 amirgon