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

NPE thrown when calling _cmsinternal rest service

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 13.2.1
    • 13.4.0, 14.0.0
    • None
    • Flagged

    Description

      calling rest service within channel manager like:

      http://localhost:8080/site/_cmsinternal/api-manual/EventsDocument

      <@hst.link var="myLink" path="api-manual/EventsDocument/" />
      
      <script>
        const url = '${myLink}';
      const request = async () => {
          const response = await fetch(url);
          const json = await response.json();
          console.log(json);
      }
      
      request();
      
      </script>
      

      Throws NPE at org.hippoecm.hst.container.HstDelegateeFilterBean#finishMatchingPhase

            if (mount.isExplicit() &&  mount.getHstSite().getChannel() != null &&
                      (resolvedSiteMapItem == null || !resolvedSiteMapItem.getHstSiteMapItem().isContainerResource())) {
      
      

      There should be a check if mount.getHstSite() !=null

      Attachments

        Activity

          People

            mmilicevic Marijan Milicevic
            mmilicevic Marijan Milicevic
            Hippo Helpdesk Hippo Helpdesk
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: