Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-25149

Sample Portlet Client in Example Plugins SDK packaged with Liferay Developer Studio 1.4 defaults to secure axis URL.

    Details

      Description

      Sample Portlet Client in Example Plugins SDK packaged with Liferay Developer Studio 1.4 defaults to secure axis URL.

      There is a minor issue with the "sample-portal-client-portlet" in the "example-plugins-sdk".

      Line 58 of "view.jsp" contains the hard-coded default "true", which results in the URL always being the "secure" URL.

      examples-plugins-sdk/portlets/sample-portal-client-portlet/docroot/view.jsp
      // line # 58
              if (true) {
                      String password = "test";
      
                      url = "http://" + remoteUser + ":" + password + "@localhost:8080/tunnel-web/secure/axis/" + serviceName;
              }
      

      However, the default configuration for axis in "portal.properties" is for axis to be unsecure, hence the sample portlet cannot connect to axis without a portal-ext.property update for axis, or a change to the URL in the sample portlet's "view.jsp".

      Suggest changing the default value to false, resulting in the non-secure axis URL, which will connect to a default installation of Liferay Portal.

      eg.

      examples-plugins-sdk/portlets/sample-portal-client-portlet/docroot/view.jsp
      // line # 58
              if (false) {
                      String password = "test";
      
                      url = "http://" + remoteUser + ":" + password + "@localhost:8080/tunnel-web/secure/axis/" + serviceName;
              }
      

        Attachments

          Activity

            People

            Assignee:
            gregory.amerson Gregory Amerson
            Reporter:
            tim.telcik Tim Telcik
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              9 years, 22 weeks, 2 days ago

                Packages

                Version Package
                6.1.1 CE GA2
                6.1.20 EE GA2
                6.2.0 CE M2