Uploaded image for project: 'Hippo Site Toolkit 2'
  1. Hippo Site Toolkit 2
  2. HSTTWO-1628

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.22.02
    • Fix Version/s: 2.22.03, 2.23.01
    • Component/s: None
    • Labels:
      None
    • Similar issues:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: