Details

    • Fix Priority:
      3
    • Liferay Contributor's Agreement:
      Accept

      Description

      Defining a renderURL thus:

      <liferay-portlet:renderURL varImpl="myURL" secure="true">
      <liferay-portlet:param name="jspPage" value="/myPage.jsp"/>
      </liferay-portlet:renderURL>

      Were the server is currently running in an unsecure fashion, i.e. http://mydomain.com:8080/
      Incorrectly results in a URL of https://mydomain.com:8080/...

      Note the port number, this should have been changed to 8443 for my instance.

      The issue occurs because in PortletURLImpl in the generateToString method, there is the following code at line 750:

      if (layout != null) {
      _layoutFriendlyURL = GetterUtil.getString(
      PortalUtil.getLayoutFriendlyURL(layout, themeDisplay));

      if (_secure)

      { _layoutFriendlyURL = HttpUtil.protocolize( _layoutFriendlyURL, true); }

      }

      HttpUtil.protocolize does not update the port number to the correct port.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 39 weeks, 5 days ago

                Subcomponents