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

NullPointerException thrown when importing a site LAR into a staging site

    Details

      Description

      1. The NPE is happening right here. It's cause is the missing "sourceGroup" variable.
      2. The sourceGroup variable cannot be located because it does not exist in the environment I was testing with. When exporting the LAR, the sourceGroup is that of the group exporting.
      3. For some reason, when staging is enabled, the portal also checks to make sure the sourceGroup is a companyGroup.
      4. This issue is not reproducible when staging is disabled

      Steps to Reproduce
      1. create new site with some content and pages
      2. export the LAR
      3. delete the site
      4. create a new site, enable staging
      5. try to import the LAR
      Expected Behavior: LAR is imported
      Actual Behavior: NPE is thrown and LAR cannot be imported

      Testing
      Reproduced in 7.0.x - 9a2913730685abdf4ec5b211baa1b0319dceb122
      Reproduced in master - 02394419250ce3570c63fd52ad9d4e89138c5a11

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              hong.zhao Hong Zhao (Inactive)
              Reporter:
              christopher.kian Christopher Kian
              Participants of an Issue:
              Recent user:
              Csaba Turcsan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

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

                  Packages

                  Version Package
                  7.0.0 DXP FP33
                  7.0.0 DXP SP7
                  7.0.5 CE GA6
                  7.0.X
                  7.1.X
                  Master