PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-14965

Liferay.PortletURL.createRenderURL() should return https urls when url is requested from a secured page

    Details

    • Liferay Contributor's Agreement:
      Accept
    • Similar Issues:
      Show 5 results 

      Description

      To reproduce.

      From a ssl secured liferay installation execute the following javascript

      <script type="text/javascript>
      var myurl = Liferay.PortletURL.createRenderURL();
      alert(myurl );
      </script>

      The url returned will be a http url.

      I would expect it to be a https url

        Activity

        Hide
        Jelmer Kuperus added a comment -

        The one line fix

        Show
        Jelmer Kuperus added a comment - The one line fix
        Hide
        Pani Gui (Inactive) added a comment -

        PASSED Manual Testing using the following steps:
        1. Set up the portal with https.
        2. Start the portal.
        3. Sign in.
        4. Open the javascript console of the browser.
        5. Type following.
        AUI().use('liferay-portlet-url', function()

        {var myurl = Liferay.PortletURL.createRenderURL(); myurl.setPortletId(2); console.log(myurl.toString())}

        );
        6. Click <enter>.

        Reproduced on:
        Tomcat 6.0.32 + MySQL 5. 6.0.5 CE.
        Tomcat 6.0.33 + MySQL 5. 6.0.12 EE.
        Tomcat 7.0.21 + MySQL 5. 6.1.x Revision 87070.

        Fixed on:
        Tomcat 7.0.21 + MySQL 5. 6.1.x Revision 90671.

        Show
        Pani Gui (Inactive) added a comment - PASSED Manual Testing using the following steps: 1. Set up the portal with https. 2. Start the portal. 3. Sign in. 4. Open the javascript console of the browser. 5. Type following. AUI().use('liferay-portlet-url', function() {var myurl = Liferay.PortletURL.createRenderURL(); myurl.setPortletId(2); console.log(myurl.toString())} ); 6. Click <enter>. Reproduced on: Tomcat 6.0.32 + MySQL 5. 6.0.5 CE. Tomcat 6.0.33 + MySQL 5. 6.0.12 EE. Tomcat 7.0.21 + MySQL 5. 6.1.x Revision 87070. Fixed on: Tomcat 7.0.21 + MySQL 5. 6.1.x Revision 90671.

          People

          • Assignee:
            Pani Gui (Inactive)
            Reporter:
            Jelmer Kuperus
            Recent user:
            Esther Sanz
            Participants of an Issue:
          • Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 32 weeks, 6 days ago

              Development

                Structure Helper Panel