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

Host configuration with property expansion doesn't work with prefixes/postfixes

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 15.1.0
    • 15.1.2, 15.2.0
    • None
    • Flagged
    • Quasar
    • Team Quasar Sprint 295
    • Small (1-2)

    Description

      We support property expansion in virtual host configuration, see https://xmdocumentation.bloomreach.com/library/enterprise/installation-and-configuration/configure-virtual-hosts-in-an-environment.html

      When property expansion is combined with prefixes or postfixes in the node name, this works on the delivery part, but not when saving channel properties in the Experience Manager.

      Example

      • System property ${brc.environmentname}=dev
      • Host configuration: /hst:hst/hst:hosts/dev/cloud/bloomreach/example/www-${brc.environmentname}
      • Delivery at www-dev.example.bloomreach.cloud works

      Saving channel properties in the Experience Manager leads to

      [org.hippoecm.hst.pagecomposer.jaxrs.services.RootResource.saveChannel():204] Failed to saveChannel channel
      org.hippoecm.hst.configuration.channel.ChannelException: Mount not found: /hst:hst/hst:hosts/dev/cloud/bloomreach/example/www-dev/hst:root
      	at org.hippoecm.hst.platform.configuration.channel.ChannelManagerImpl.mountNotFoundException(ChannelManagerImpl.java:694) ~[hst-platform-15.1.0.jar:15.1.0]
      	at org.hippoecm.hst.platform.configuration.channel.ChannelManagerImpl.updateChannel(ChannelManagerImpl.java:631) ~[hst-platform-15.1.0.jar:15.1.0]
      

      Analysis
      Method org.hippoecm.hst.platform.configuration.channel.ChannelManagerImpl#findSubstitutedNodeNames only supports matching on full node names.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jhoffman Jeroen Hoffman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: