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

Cannot publish Staging over IPV6 connection



      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=,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,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.


        1. Captura de pantalla 2021-10-06 a las 14.48.32.png
          Captura de pantalla 2021-10-06 a las 14.48.32.png
          401 kB
        2. custom_ipv6_address.png
          50 kB
        3. expected remote staging behavior.gif
          expected remote staging behavior.gif
          2.32 MB
        4. expected result.png
          expected result.png
          39 kB
        5. image-2021-10-06-12-37-51-634.png
          819 kB
        6. IPV6+remote staging.gif
          IPV6+remote staging.gif
          3.48 MB
        7. IPV6 remote staging publish.gif
          IPV6 remote staging publish.gif
          2.90 MB
        8. master_portlet_pop window_Chrome.png
          master_portlet_pop window_Chrome.png
          886 kB
        9. master_portlet_pop window_Firefox.png
          master_portlet_pop window_Firefox.png
          271 kB
        10. master.png
          1.36 MB
        11. master-IPV6-all types of portlets.gif
          master-IPV6-all types of portlets.gif
          1.66 MB
        12. Screen Shot 2020-08-24 at 9.37.33 PM.png
          Screen Shot 2020-08-24 at 9.37.33 PM.png
          2.71 MB
        13. Screen Shot 2020-08-25 at 12.05.11 PM.png
          Screen Shot 2020-08-25 at 12.05.11 PM.png
          1.02 MB

        Issue Links



              koor.gai Koor Gai (Inactive)
              koor.gai Koor Gai (Inactive)
              Kiyoshi Lee Kiyoshi Lee
              Marko Čikoš Marko Čikoš
              0 Vote for this issue
              6 Start watching this issue


                49 weeks ago


                  Version Package
                  7.4.13 DXP GA1
         CE GA4
         CE GA5
                  7.4.13 DXP U1