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

magnolia.bootstrap.dir does not support yaml files

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: 5.7.1
    • Fix Version/s: 5.7.5, 6.1.3, 6.2
    • Component/s: None
    • Labels:
      None
    • Release notes required:
      Yes
    • Documentation update required:
      Yes
    • Epic Link:
    • Sprint:
      Maintenance & Releases
    • Story Points:
      3
    • Magnolia Release:
      5.7.5, 6.1.3, 6.2

      Description

      When YAML files are located in the directory configured by magnolia.bootstrap.dir, this content is not bootstrapped.

      Steps to reproduce ( in a new Magnolia bundle):

      1. In an already working instance, create a page and export it to YAML (for example, with a page it might be any other content).
      2. Store the YAML file in /bootstrap/common (magnolia.bootstrap.dir default value) in the new instance.
      3. Start the server and install Magnolia.
      4. Go to Pages app, the page wasn't bootstrapped.

      The cause seems to be in info.magnolia.importexport.Bootstrapper.getBootstrapFiles(String[], String, BootstrapFilter) where YAML files are not accepted:

      public boolean accept(File dir, String name) {
                          return name.startsWith(repositoryName + ".")
                                  && filter.accept(name)
                                  && (name.endsWith(DataTransporter.XML) || name.endsWith(DataTransporter.ZIP) || name
                                  .endsWith(DataTransporter.GZ) || name.endsWith(DataTransporter.PROPERTIES));
                      }
      

        Attachments

          Activity

            People

            Assignee:
            asiska Adam Siska
            Reporter:
            miruela Mercedes Iruela
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: