Copy page hierarchy REST API copies a page tree 5 times

XMLWordPrintable

    • Severity 2 - Major

      Issue Summary

      Doing a Copy page hierarchy REST API call to some page trees results in 5 copies when copyProperties is set to true.

      Instances replicated in

      Steps to Reproduce

      1. Call Copy page hierarchy REST API with "copyProperties": true in the request body
      2. Wait until the long-running task is done

      Sample request body:

      {
        "copyAttachments": true,
        "copyPermissions": true,
        "copyProperties": true,
        "copyLabels": true,
        "originalPageId": "xxx",
        "destinationPageId": "xxx",
        "titleOptions": {
              "prefix": "[COPY] "
        }
      }
      

      Expected Results

      Only one page tree is copied.

      Actual Results

      5 copies are made with prefixes of "(2) (2)", "(3) (3)", ... , "(5) (5)". The title prefix is also duplicated.

      Notes

      • Happens to specific contents only.
      • The pattern cannot be found as of yet.

      Workaround

      Currently, there is no known workaround for this behavior. A workaround will be added here when available.

            Assignee:
            Leo Huang (Inactive)
            Reporter:
            Kevin Chase
            Votes:
            4 Vote for this issue
            Watchers:
            20 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 5m
                5m
                Remaining:
                Remaining Estimate - 5m
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified