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

Global references are not being published with a Web Content Display portlet



      Steps to reproduce/Testing done

      1. Create a new site "test" on both remote and local server
      2. Enable remote staging on local server for site "test"
      3. Enable remote staging on local server for site "global"

      Scenario 1:

      1. Add portlet "Web Content Display" on a page of site "test"
      2. Create a new content
      3. Publish on remote server
        Expected Result: The page and content get published
        Actual Result: The page and content get published

      Scenario 3:

      1. Create a web content in "global" site
      2. Add a "Web Content Display" on a page of site "test"
      3. In the configuration, selects the newly created web content from "global" site
      4. Publish on remote server (site "test")
      5. It fails complaining about missing reference (which is normal)
      6. Publish on remote server (site "global") from the control panel, site section. The web content gets published on production
      7. Try again to publish "test" site
        Expected Result: Publish succeeds and content is visible in portlet
        Actual Result: Publish fails, still complaining that the reference is missing (even if the web content really exists in global site)

      For all instances where the publish fails, the following exception is thrown:

      19:26:44,382 ERROR [liferay/background_task-1][BackgroundTaskMessageListener:133] Unable to execute background task
      	at com.liferay.portal.lar.LayoutImporter.validateFile(LayoutImporter.java:157)
      	at com.liferay.portal.service.impl.LayoutLocalServiceImpl.validateImportLayoutsFile(LayoutLocalServiceImpl.java:2950)
      	at com.liferay.portal.service.impl.LayoutLocalServiceImpl.validateImportLayoutsFile(LayoutLocalServiceImpl.java:2983)


        Issue Links



              yunlin.sun Yunlin "Steven" Sun
              jeremy.marshall Jeremy Marshall (Inactive)
              Kiyoshi Lee Kiyoshi Lee
              0 Vote for this issue
              2 Start watching this issue


                8 years, 39 weeks, 1 day ago


                  Version Package
                  6.2.2 CE GA3
                  6.2.X EE
                  7.0.0 M1