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

The option to forcibly disable staging doesn't work

Details

    Description

      Description
      The purpose of the option to forcibly disable staging is to allow staging to be disabled even when the connection to the remote live site can't be established. However, this isn't working currently. When you select the option to forcibly disable remote staging, Liferay will still attempt to connect to the remote live site and fail if it cannot establish a connection.

      This is happening because we don't properly set the "stagingType" parameter during the request to forcibly disable staging. The parameter should be set to TYPE_NOT_STAGED to communicate that we want the site to be unstaged, but it is instead set to TYPE_REMOTE_STAGING which tells the backend that we want to enable remote staging (which requires it to make requests to the remote live site).

      Steps to Reproduce
      1. Configure 2 instances of Liferay with different IP/ports and shared tunnel secrets in portal-ext, e.g.

      tunneling.servlet.shared.secret=6162636465666768696a6b6c6d6e6f70
      tunneling.servlet.shared.secret.hex=true
      

      2. Start each instance
      3. Configure first instance to remote stage with 2nd instance
      4. Shut down 2nd instance
      5. Attempt to change port # of remote instance in first instance's staging settings. This fails
      6. In resulting error message on page, click on 'forcibly disable'
      Expected Result: Staging is disabled successfully.
      Actual Result: Staging is not disabled, and the following error message appears in the logs:

      ERROR [http-nio-8080-exec-1][SiteAdministrationPanelCategoryDisplayContext:212] Unable to connect to remote live: java.net.ConnectException: Connection refused (Connection refused)
      

      Attachments

        Activity

          People

            joyce.wang Joyce Wang
            michael.bowerman Michael Bowerman
            Kiyoshi Lee Kiyoshi Lee
            Michael Bowerman Michael Bowerman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 33 weeks, 2 days ago

              Packages

                Version Package
                7.3.10.3 DXP SP3
                7.3.X
                7.4.13 DXP GA1
                7.4.3.4 CE GA4
                Master