Uploaded image for project: '[Read Only] - Hippo Repository'
  1. [Read Only] - Hippo Repository
  2. REPO-1747

errors during initial bootstrap can result in multiple hcm:hcm nodes

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 5.0.0
    • 5.0.1
    • None
    • None
    • 0.5
    • Platform161: Pre-GA1, Platform162: Pre-GA2

    Description

      The flow of detecting this run is the "first" bootstrap in combination with creating the hcm:hcm node is not correct yet. Below a reproduction path that resulted in multiple root hcm:hcm nodes. Note that if in another issue we remove the capability to have sns on root, we should validate these steps; most likely when starting the project for the second time it will try and add the hcm:hcm node and fail as sns are no longer supported.

      • generate a Hippo project
      • patch the Repository: in org.onehippo.cm.engine.ConfigurationConfigService#computeAndWriteDelta, throw a RuntimeException (see attached patch)
      • rebuild the project, start it, wait for Tomcat to complete the startup (you will see the RuntimeException in the console)
      • remove the patch, rebuild and restart
      • open the console, you now have 2 hcm:hcm nodes in the root of the repository

      Attachments

        Activity

          People

            Unassigned Unassigned
            oscholten Oscar Scholten (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: