Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-88095

Restoring a site export with historical attachment versions results in loss of comments and its data

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 8.4.0
    • 8.3.0, 8.3.1, 8.3.2
    • Scale
    • None

      Issue Summary

      When restoring attachments, objects with references to the attachments are not fully restored. For example, this affects comments on attachments, and all of the comments metadata.

      This is reproducible on Data Center:  yes

      Steps to Reproduce

      1. create a page with an attachment and comment/like on the attachment
      2. create a second version of this attachment and add some more comments to the new version
      3. Export the site without attachments checkbox selected
      4. Import the site

      Expected Results

      We expect the attachment to be missing but the comments and its metadata on the attachment to be there.

      Is this expected? How did old site imports handle this? We have a yellow comment bubble (anchor) that is placed on the image with an x/y coordinate. How is this item handled?

      ANSWER: This behaves exactly the same as old site backups - therefore its an existing bug and not a blocker

      Here is a pre export attachment:

      Actual Results

      We have no comments on the historical version of the attachment:

      Additionally, we have logs for the comment and its related properties and content being skipped due to missing parent:

      Object was skipped with a reason PARENT_WAS_NOT_PERSISTED: ImportedObjectV2{id=121045024, entityClass=class com.atlassian.confluence.pages.Comment, originalPropertyValueMap=....
      ....
      Object was skipped with a reason NOT_SATISFIED_DEPENDENCIES: ImportedObjectV2{id=121077788, entityClass=class com.atlassian.confluence.core.BodyContent, originalPropertyValueMap={bodyType=2, id=121077788, body=<p>The text on here should match the button that they tapped</p>, content=121045024}}
      ....
      Object was skipped with a reason NOT_SATISFIED_DEPENDENCIES: ImportedObjectV2{id=120947091, entityClass=class com.atlassian.confluence.content.ContentProperty, originalPropertyValueMap={stringValue=open, name=status, id=120947091, content=121045024}}
      ....
      Object was skipped with a reason NOT_SATISFIED_DEPENDENCIES: ImportedObjectV2{id=120947092, entityClass=class com.atlassian.confluence.content.ContentProperty, originalPropertyValueMap={stringValue={\"type\":\"pin\",\"page\":1,\"x\":0.5609756097560976,\"y\":0.05486284289276808}, name=ANCHOR, id=120947092, content=121045024}}
      

      Workaround

      Use legacy backup restore to restore your site. You can access it via old link <base_url>/admin/backup.action

              d5dce7b13926 agawron
              d5dce7b13926 agawron
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: