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

Cache returns bad data after an upgrade process is run within a plugin

    Details

      Description

      1. Create a plugin and add an upgrade process

      runSQL("update VirtualHost set hostname = 'test.liferay.com'");
      

      2. On a clean portal instance put the war in the deploy folder
      3. After the portlet deploys, run this in groovy from the Control Panel

      import com.liferay.portal.kernel.util.Http;
      import com.liferay.portal.model.Company;
      import com.liferay.portal.service.CompanyLocalServiceUtil;
      import com.liferay.portal.util.PortalUtil;
      Company company = CompanyLocalServiceUtil.getCompany(PortalUtil.getDefaultCompanyId());
      out.println(PortalUtil.getPortalURL(company.getVirtualHostname(), Http.HTTP_PORT, false));
      

      Expected: http://test.liferay.com
      Actual: http://localhost

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shitian.zhang Shitian "Shelton" Zhang (Inactive)
              Reporter:
              peter.shin Peter Shin
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 44 weeks, 4 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 Beta 2