Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-8207

DataTransporter (for file import) may fail if the file-name does not reflect the node name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Neutral
    • None
    • None
    • None

    Description

      Context / how to reproduce

      Page 'test-publish-variants' - which has no variants - has been published.
      After that, on AUTHOR variants were added.
      Then bootstraps are created of the version with variants from AUTHOR and from the version without variants from PUBLIC.

      This setup was used to test publishing of page-variants.
      I have renamed both files to have them in same resources directory, and to make it easy to recognize the right file.

      Files:
      (a) website.test-publish-variants-PUBLIC-no-variants.yaml
      (b) website.test-publish-variants-AUTHOR-with-variants.yaml
      On File (b) I had to remove some jcr-properties (with the help of Roman).

      Both files can be imported manually via UI. But only one of the file can be imported programmatically (via @Fixture).

      @Fixture(fixtureFile = "website.test-publish-variants-PUBLIC-no-variants.yaml", repository = "website", instances = {  DIRECT_PUBLIC })

      this works

      @Fixture(fixtureFile = "website.test-publish-variants-AUTHOR-with-variants.yaml", repository = "website")

      This fails

      Renaming the one file (from author) - giving the "original name" - fixes the issue:

      @Fixture(fixtureFile = "website.test-publish-variants.yaml", repository = "website")

      this works

       

      Developer note:

      Roman assumes the problem is in DataTransporter - line 466

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              mduerig Michael Duerig
              cmeier Christoph Meier
              Foundation
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Bug DoR
                  Task DoD

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 2.5h
                    2.5h