Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-12981

DefinitionMergeService should honor overlapping module paths

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • High
    • Resolution: Unresolved
    • None
    • None
    • hcm
    • None
    • 0.5
    • Pulsar
    • Platform 213 SSO Delivery 3, Platform 215, !Pulsar - Misc brXM

    Description

      It is currently possible to specify multiple overlapping autoexport:modules mappings, such that:

      1. / => application
      2. /content/documents/main/ => development
      3. /content/documents/main/production-data => application

      This doesn't consistently work as expected, since the module-to-path mappings are not kept in the order specified, and DefinitionMergeService.getModuleByAutoExportConfig() uses a "first match wins" algorithm.

      I think a single-line fix to store the mappings with a LinkedHashMap should result in the desired behavior.

      Attachments

        Activity

          People

            PCentgraf Peter Centgraf
            PCentgraf Peter Centgraf
            Hippo Helpdesk Hippo Helpdesk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: