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

XMLWordPrintable

    • Severity 2 - Major

      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

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

              Created:
              Updated:
              Resolved: