Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-5673

Improve Auto-export for bootstrap content structure when using the channel manager

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Top
    • Resolution: Fixed
    • 2.22.00
    • 2.22.00
    • channel-manager
    • None

    Description

      When editing a channel in the template composer, auto-export removes the existing bootstrap xml files and exports all configurations to hst/configurations.xml (which then becomes huge).

      Steps to reproduce:

      1. Create a new project using the archetype 1.04.08-SNAPSHOT (use the default values)
      2. Compile and start the cms with auto-export enabled ('mvn -Pcargo.run -Dhippoecm.export.dir=content/src/main/resources')
      3. Login as admin
      4. Open the 'My Hippo Project' channel in the channel manager
      5. Click 'edit'
      6. Drag the 'list' component to the slot on the homepage
      7. click 'Save & Close'
      8. click 'Publish'

      Expected behavior: only the file content/src/main/resources/hst/configurations/myhippoproject/pages/home.xml has been changed

      Actual behavior:

      • all separate XML files in content/src/main/resources/hst/configurations/myhippoproject/pages and content/src/main/resources/hst/configurations/myhippoproject/components are deleted
      • a whole new directory content/src/main/resources/hst/configurations/myhippoproject-preview has been added (even though that configuration does no longer exist in the repository since the channel has been published)
      • the file content/src/main/resources/hst/configurations.xml also contains the hst:default configuration, although that has not changed

      In more detail:
      After step 5, auto-export generates the content/src/main/resources/hst/configurations/myhippoproject-preview directory (as it should)
      After step 6 and 7, auto-export changed the file content/src/main/resources/hst/configurations/myhippoproject-preview/pages/home.xml file (as it should)
      After step 8, things go wrong: the directory content/src/main/resources/hst/configurations/myhippoproject-preview is not removed again, and the existing XML files for pages and components in the 'myhippoproject' directory are deleted.

      Attachments

        Issue Links

          Activity

            People

              svoortman Simon Voortman (Inactive)
              mdenburger Mathijs den Burger (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: