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

LAR exports from 7.0 are able to be imported into 7.1

    Details

      Description

      Issue
      Previous versions of Liferay had version control and data validation for its LAR import process, but LAR exports from a site in 7.0 are able to be imported into 7.1.

      Steps to Reproduce
      1. Start up a Liferay 7.0 bundle (used 7.0.x)
      2. Create a new Public Site called Testing
      3. In Product Menu > Testing (Site) > Content > Web Content > Add a new basic article
      4. In Product Menu > Testing (Site) > Publishing > Export > Create a Custom Export into a LAR file
      5. Download the LAR file
      6. Start up a Liferay 7.1 bundle (used 7.1.x)
      7. Create a new Public Site called Testing
      8. In Product Menu > Testing (Site) > Publishing > Import > Drop in the file created in step #5
      9. Proceed with the Import process

      Actual Result
      Successful import is possible even if the version is different.

      Expected Result
      Validation error should be thrown since we're trying to import a LAR file from a different version. For example, when we try to import the LAR generated from 7.0.x into 6.2.x, we encounter the following error:

      The file Public_Pages-20190308062106002.lar cannot be imported.
      LAR build number 7006 does not match portal build number 6210

      Reproduced in
      Liferay DXP 7.1 + FP 8
      7.1.X Private Commit: 680d902580aa74d19b86e16f4e60b00a790b53d2

        Attachments

        1. 70export-20190319014052548.lar
          19 kB
        2. master.png
          master.png
          18 kB
        3. Screenshot.png
          Screenshot.png
          82 kB

          Activity

            People

            Assignee:
            joyce.wang Joyce Wang
            Reporter:
            brian.suh Brian Suh
            Participants of an Issue:
            Recent user:
            Sophia Zhang
            Engineering Assignee:
            Tamas Molnar
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 42 weeks ago

                Packages

                Version Package
                7.4.13 DXP GA1
                Master