Uploaded image for project: 'Hippo Repository'
  1. Hippo Repository
  2. REPO-1805

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 5.0.0
    • Fix Version/s: 5.0.1
    • Labels:
      None
    • Similar issues:
    • Story Points:
      1
    • Epic Link:
    • Processed by team:
      Platform
    • Sprint:
      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

              • Assignee:
                lsharma Lakshay Sharma
                Reporter:
                PCentgraf Peter Centgraf
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: