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

Linked Layout of Web Content missing during Import

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: 7.1.X, Master
    • Fix Version/s: None
    • Labels:
      None

      Description

      Reproduction Steps:

      1) Create a page P1.
      2) Create a child page for P1, called P2.
      3) Create a child page for P2, called P3.

      4) Create a Web Content structure which has a link to a page element.
      5) Create a Template for this structure.

      6) Create a Journal Article: J1, its link-to-layout field points to P2.
      7) Create a Journal Article: J2, its link-to-layout field points to P3.

      8) Put a Web Content Display template to P1 and set Web Content: J2.

      9) Export the whole site.
      10) Create a new site and try to import it.

      Result:

      java.lang.NullPointerException
              at com.liferay.journal.content.web.internal.exportimport.portlet.preferences.processor.JournalContentExportImportPortletPreferencesProcessor.processImportPortletPreferences(JournalContentExportImportPortletPreferencesProcessor.java:356)
      

      JournalContentExportImportPortletPreferencesProcessor can't find the linked layout on the importing site's side, hence the NPE

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              balazs.safrany-kovalik Balázs Sáfrány-Kovalik
              Reporter:
              balazs.safrany-kovalik Balázs Sáfrány-Kovalik
              Participants of an Issue:
              Recent user:
              Balázs Sáfrány-Kovalik
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

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

                  Packages

                  Version Package