Skip to content

Can’t resolve page references that point to other pages in the same import batch #65

@hissy

Description

@hissy

When two pages in the same import batch link to each other using the {ccm:export:page:/path} token, the validator reports:

Referenced page at path /test-page-b cannot be found in the site or in the current content batch.

…even though /test-page-b (and /test-page) are included in that batch.

Also, the link in the imported page will be empty.

Image

Since importing pages is a core feature of the Migration Tool, this bug significantly impacts its reliability and makes it difficult to use for real-world site migrations.

Steps to Reproduce

  1. Create two pages: Test Page A (/test-page) and Test Page B (/test-page-b). Image
  2. Add a Content block to each page containing a link to the other page.
  3. Export both pages to CIF using the Migration Tool. Here's the xml: export.xml
  4. Delete the two pages from the site.
  5. Install/enable the Migration Tool add-on.
  6. Create a new Import Batch and upload the XML from step 3.

Actual Result

The batch shows a validation warning for Test Page A:

Referenced page at path /test-page-b cannot be found in the site or in the current content batch.

…and similarly for Test Page B.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions