Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-14485

In Exp. Mgr., wrong endpoint parameter value set on SPA request

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 14.4.0
    • 14.6.0
    • None
    • Flagged
    • Quasar
    • Puma Sprint 255, Puma Sprint 256

    Description

      In org.hippoecm.hst.container.HstDelegateeFilterBean#includePmaCallbackURL there's logic to add the 'endpoint' parameter to the SPA location as configured by 'org.hippoecm.hst.configuration.channel.PreviewURLChannelInfo_url'.

      In case the CMS runs on a different domain then the site, the value is <cms>/resourceapi rather then <site>/resourceapi

      Local reproduction:

      • start the demo at brxm/community/spa-sdk/examples/xm
      • rename /hst:platform/hst:hosts/dev-localhost/localhost to 127.0.0.1
      • access the CMS at http://127.0.0.1:8080/cms/ and open the channel

      --> Inspect the URL that is constructed, in browser or when debugging.

      Analysis
      The logic uses HstRequestUtils#createURLForMountPath which uses HstRequestUtils.getFarthestRequestHost(request, false) which returns the 127.0.0.1 URL, then "/resourceapi" is added

      Consequences?
      I don't know what the consequence of this is. How is the SPA SDK using that parameter?

      Attachments

        Activity

          People

            Unassigned Unassigned
            jhoffman Jeroen Hoffman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: