Uploaded image for project: 'Confluence Server'
  1. Confluence Server
  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

              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Last commented:
                  40 weeks, 6 days ago