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

With inheritance, HstSiteMapItemService uses the wrong siteMapRootNodePath, which leads to StringIndexOutOfBoundsException

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.22.02
    • 2.22.03, 2.23.01
    • None
    • None

    Description

      In HstSiteMapItemService, line 129:
      this.id = nodePath.substring(siteMapRootNodePath.length()+1).intern();

      When using inheritance in HST configurations, the nodePath can be in the super-configuration, and the siteMapRootNodePath refers to the sub-configuration.

      Examples:

      HST configurations: myhippoproject-A inherits from myhippoproject
      nodePath: /hst:hst/hst:configurations/myhippoproject/hst:sitemap/home
      siteMapRootNodePath: /hst:hst/hst:configurations/myhippoproject-A/hst:sitemap
      id = "me" (instead of "home")

      HST configurations: myhippoproject-Awesome inheritsfrom myhippoproject
      nodePath: /hst:hst/hst:configurations/myhippoproject/hst:sitemap/home
      siteMapRootNodePath: /hst:hst/hst:configurations/myhippoproject-Awesome/hst:sitemap
      id = StringIndexOutOfBoundsException (instead of "home")

      Attachments

        Activity

          People

            aschrijvers Ard Schrijvers
            mtricot Mickaƫl Tricot (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: