Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-67045

Copy page hierarchy REST API copies a page tree 5 times

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              lhuang@atlassian.com Leo Huang (Inactive)
              da50c7928d0c Kevin Chase
              Votes:
              4 Vote for this issue
              Watchers:
              20 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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