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

Auto-export will create def with duplicate root path if existing def has no properties

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 5.0.0
    • 5.0.1
    • None
    • None
    • 1
    • Platform164

    Description

      If an existing local def has no properties, it is not added to the back-references in ConfigurationNode.getDefinitions(). If a property is then added/updated on the node, DefinitionMergeService creates a new local def for that property instead of reusing the existing def. If the new def is in the same module as the existing one, this is a config error and auto-export fails with an exception on reload.

      This can be trivially reproduced with a new archetype-generated project by adding a (dummy) property to 

      /hippo:configuration/hippo:modules/autoexport

      (the parent, not the hippo:moduleconfig child)

      Attachments

        Issue Links

          Activity

            People

              lsharma Lakshay Sharma (Inactive)
              PCentgraf Peter Centgraf
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: