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

Calling ImportExportManager.doImport with a space export without setting the space key rebuilds the entire ancestor table

    XMLWordPrintable

Details

    Description

      Code to reproduce:

      DefaultImportContext ctx = new DefaultImportContext(spaceExportUrl, Confluence.getConfluenceUser());
      ctx.setPostProcessor(createImportContextPostProcessor(new Date()));
      Confluence.getImportExportManager().doImport(ctx);
      

      The Confluence code that causes the issue is in com.atlassian.confluence.pages.ancestors.RebuildAncestorsPostImportTask#rebuildPageAncestors

      Attachments

        Issue Links

          Activity

            People

              hrehioui Hasnae (Inactive)
              nbhawnani Niraj Bhawnani
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: