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

[Backport 3.1.3] HST Link Creation fails on root path for Plain REST mount

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • High
    • Resolution: Fixed
    • 3.1.1
    • 3.1.3
    • None
    • 1
    • Platform sprint 128, Platform sprint 129, Platform sprint 130

    Description

      If you configure a plain jaxrs rest api mount and if you create a link from normal site jsp template (in root mount, not rest api mount) like the following, it fails to create a proper link (in template of hst:root mount):

      <hst:link path='/' mount='api' />
      

      , where 'api' is the mount alias as follows:

      `- hst:root { hst:mountapi = "api" }
          `- api { hst:alias="api" }
      

      In the api mount, there's no sitemap configuration because it's for simple plan jaxrs mount.

      Reproduction Path

      • Check out hippo-testsuite master.
      • Add the following at the bottom of the left menus in site/src/main/webapp/WEB-INF/jsp/components/main/leftmenu.jsp:
          <li>
            <hst:link var="restservicesLink" path="/" mount="restservices"/>
            <a href="${restservicesLink}" 
               target="_blank">RESTful Services</a>
          </li>
        
      • Build and run hippo-testsuite master.
      • Set /hst:hst/hst:hosts/dev-localhost/localhost/hst:root/restservices/@hst:alias to restservices.
      • Set /hst:hst/hst:hosts/dev-localhost/localhost/hst:root/restservices/@hst:ismapped to false.
      • Add property, setting /hst:hst/hst:hosts/dev-localhost/localhost/hst:root/@hst:mountrestservices to restservices.
      • Visit the homepage, http://localhost:8080/site/.
      • See how the RESTful Services menu link is generated.
      Expectation:

      The RESTful Services menu link should be /site/restservices.

      Actual Result

      The RESTful Services menu link is generated as /site/.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aschrijvers Ard Schrijvers
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: