Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-32155

RootFactory structure template is invoked when Root already exists

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2021.45
    • Fix Version/s: None
    • Component/s: Core

      Description

      A RootFactory structure template is defined in Studio for the Root doctype. This should only be invoked when the Root folder is created i.e. when Nuxeo starts with an empty repository.

      In current scenario, when Nuxeo is restarted, the /default-domain Domain doctype is re-created (even though Root exists).

      Expected Behaviour

      When Nuxeo restarts (and Root exists), the RootFactory structure should have no effect. The Domain at /default-domain should not be created if it did not exist before.

      Actual Behaviour

      When Nuxeo restarts (and Root exists), the Domain at /default-domain is created (and its default children i.e. Sections, Templates, Workspaces).

      Notes

      • the Studio JAR being deployed is bundled in a Java package, using
        <studio.project.version>master-SNAPSHOT</studio.project.version>
        
      • this version of the Studio bundle contains the RootFactory definition at: .metadata/RootFactory.tpl.xml (see attached, sanitised). Notably this version does not include any <canOverrideType> declaration
      • see also attached: OSGI-INF/extensions.xml (excerpt)

        Attachments

        1. extensions (excerpt).xml
          1 kB
          Mark Saye
        2. RootFactory.tpl.xml
          2 kB
          Mark Saye

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                msaye Mark Saye
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: