Uploaded image for project: 'Magnolia Data Module (closed)'
  1. Magnolia Data Module (closed)
  2. MGNLDATA-150

RegisterNodeTypeTask should also create root path

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Neutral
    • None
    • 1.6.4
    • None

    Description

      Our module has declared a module-dependency on the categorization module, and so we were assuming that the "/categorization" root path does exist already in the data repository when our custom ModuleVersionHandler is executed.

      Unfortunately, for types registered with a RegisterNodeTypeTask, the rootpaths are created in the data repository only after versionhandlers have executed, namely during DataModule.start(). That's what the categorization module does.

      This is usually a problem only on first server startup with an empty repository, which still creates irritation with our client when they startup our first application delivery. Also it takes some time to find out what the problem is, since we had a proper dependency on categorization module.

      Would it be possible that RegisterNodeTypeTask also creates the necessary root path? DataModule.createRootPath() seems to be doing only:

      ContentUtil.createPath(hm, rootPath, new ItemType(DataConsts.FOLDER_ITEMTYPE));
      

      If RegisterNodeTypeTask can get access to the type definition, it should be able to do the same?

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              pbaerfuss Philipp Bärfuss
              jfrantzius Joerg von Frantzius
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: