Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-2119

HstSiteMenuConfigurationService breaks on custom node type extending hst:sitemenuitem

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • High
    • Resolution: Fixed
    • None
    • 2.20.06, 2.22.11, 2.24.04, 2.25.04-alpha
    • None
    • None
    • HST 2.20.xx and later

    Description

      I get a lot of errors like the following (in a project upgraded from 7.4 to 7.5):

      2012-04-12 08:56:20,758 890729916@qtp-1793467229-0 ERROR org.hippoecm.hst.configuration.sitemenu.HstSiteMenuConfigurationService - Skipping siteMenuItem
      '/hst:hst/hst:configurations/ns/hst:sitemenus/foo/bar' because not of type 'hst:sitemenuitem'

      This is because the project defines a custom node type for sitemenuitems (extending hst:sitemenuitem). In HstSiteMenuConfigurationService, there is a check if the node type of a sitemenuitem equals
      hst:sitemenuitem:

      if(HstNodeTypes.NODETYPE_HST_SITEMENUITEM.equals(siteMenuItem.getNodeTypeName()))
      {
      // some code
      } else {
      log.error("Skipping siteMenuItem '{}' because not of type '{}'", siteMenuItem.getValueProvider().getPath(), HstNodeTypes.NODETYPE_HST_SITEMENUITEM);
      }

      This breaks the site navigation in the project.

      Attachments

        Activity

          People

            aschrijvers Ard Schrijvers
            nvankampenhout Niels van Kampenhout
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: