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

Exporting and Importing DDL Records using a Global Scope structure results in a NPE

    Details

      Description

      Importing a global scope DDMStructure can lead to an incorrectly mapped sourceCompanyGroupId which leads to a NPE during the import (See stack.txt).

      Data exported (See attached lar file):
      DDLRecord using a default Global scope DDMStructure (Inventory). The exported lar file will contain the exported DDMStructure in the global scope (id 20152).

      On import:
      The DDMStructure will be imported as a new structure in the imported site scope, not global. This causes the PortletDataContextImpl to incorrectly map the sourceCompanyGroupId to the target import site, which causes future resolution of the sourceCompanyGroupId to resolve to the target site instead of the global site.

        Attachments

        1. Public_Pages-20170208173910428.lar
          43 kB
        2. reproduce.png
          reproduce.png
          51 kB
        3. stack.txt
          6 kB

          Issue Links

            Activity

              People

              Assignee:
              melody.wu Melody Wu
              Reporter:
              edward.han Edward Han
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 3 weeks, 2 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP27
                  7.0.X EE
                  7.0.4 CE GA5
                  7.1.X
                  Master