Skip to content

[Bug]: Tries to create pages instead of updating then when it a page has more than 25 children #60

@javierbrea

Description

@javierbrea

Package

confluence-sync

What happened?

When a page has more than 25 children, the library tries to create pages instead of updating them. This produces an error because the pages already exist in Confluence with the same name.

It is produced because Confluence limits the length of expanded properties to 25 by default. So, the library only receives the first 25 children of pages, and it thinks that the rest of pages to update don't exist, so it tries to create them.

Version

1.x (Default)

Relevant log output

Error creating page with title -----: Error: Bad Request
          Response: {
  "statusCode": 400,
  "data": {
    "authorized": false,
    "valid": true,
    "allowedInReadOnlyMode": true,
    "errors": [],
    "successful": false
  },
  "message": "A page with this title already exists: A page already exists with the title ----- in the space with key ----",
  "reason": "Bad Request"
}

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions