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

Cannot publish Staging over IPV6 connection

    Details

      Description

      Steps to Reproduce (Local Staging)

      1. Set "-Djava.net.preferIPv4Stack=false" in tomcat setenv.sh
      2. Start tomcat
      3. Create a new site with a page
      4. Login portal by using IPV6 address. e.g http://[fe80::210f:f7e8:efc7:8a3c]:8080/
      5. Enable local staging on default site.
      6. Go to site page
      7. Click "Publish to live " button in the right corner of home page.

      Expected Result:
      Pop-up shows page to configure publication.

      Actual Result:
      Pop up shows default site page

      Steps to reproduce (Remote staging)

      1. Add the following properties into portal-ext.properties for local server and remote server
        1. redirect.url.ips.allowed=127.0.0.1,SERVER_IP,0:0:0:0:0:0:0:1
        2. tunnel.servlet.hosts.allowed=[0:0:0:0:0:0:0:1]
        3. tunneling.servlet.shared.secret=1234567890123456
        4. auth.verifier.TunnelAuthVerifier.hosts.allowed=[0:0:0:0:0:0:0:1]
      2. In application servers like Tomcat or Wildfly
        1. Go to tomcat-9.0.10/bin/
        2. Open "setenv.sh" or "setenv.bat" in a text editor
        3. Set -Djava.net.-Djava.net.preferIPv4Stack=false
        4. Save and close
      3. Update TunnelAuthVerfierConfiguration of your both local and remote Liferay instances > Control Panel → Configuration → System Settings → API Authentication → Tunnel Authentication
        1. Click /api/liferay/do
        2. In a hosts allowed field, add your ip address e.g 127.0.0.1,SERVER_IP,[IPV6 Address here]
      4. Save and restart your liferay instances
      5. Sign In and activate remote staging
      6. Add a page/web content article
      7. Publish to remote live

      Expected result:
      Publish to remote site is successful.
      Actual result:
      New page is opened and remote publication is not successful.

      Tomcat 9.0 + MySQL 5.7.
      Portal Master GIT ID: b61f00856ab5d13fa85ec8750dc841eee66178f8.
      Portal 7.2.x GIT ID: b492ef9c31607b7e14a086d6f6d92a97f1f92963.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              team-frontend-infra Product Team Frontend Infrastructure
              Reporter:
              koor.gai Koor Gai
              Participants of an Issue:
              Recent user:
              Brian Chan
              Engineering Assignee:
              Marko Čikoš
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 weeks, 5 days ago

                  Packages

                  Version Package
                  Master