Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-124974 As a Web Content Admin, I want to import specific structures
  3. LPS-137156

Invalid Data Layout property on JSON file is crashing web content when importing the structure

    Details

      Description

      Description

      When importing a structure on the web content if the structure has an invalid data layout property the Web Content will crash

      Steps to Reproduce

      1. Use an invalid JSON file (invalidDataLayout.json)
      2. Go to Web Content >  Structures
      3. Click on the three dots menu on the right top
      4. Select Import Structure
      5. Add the invalid JSON file
      6. Click on Import
      7. Observe

      Expected Result

      The structure should not be imported and Web Content must keep working

      Actual Result

      The Web Content crashed

       Evidence:
      webContentNotWorking.png

      Reproduced In master: 
      165fa9c60d038d45724d02da3f0dd93bad1f7bec

        Attachments

          Activity

            People

            Assignee:
            renato.rego Renato Rêgo
            Reporter:
            diogo.santos Diogo Santos
            Recent user:
            Brian Chan
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package