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

FragmentsImporterImpl only validates the html and not the config of an imported fragment

    Details

      Description

      Description
      Location

      When importing a fragment through a file in the Fragments Admin area on the control panel, html is usually validated, and if it fails the fragment is thrown into draft mode. This is also not done for the config.

      Steps to Reproduce

      1. Create a fragment with valid html, and invalid config
      2. Export fragment
      3. delete fragment
      4. Import Fragment

      Expected Result
      Error thrown correctly because it is caught correctly(if debug log is on, the exception should display in console) and fragment left in draft mode

      Actual Result
      Unknown error message is thrown because the error is not caught early and fragment is not created in draft mode.

      Tested on Tomcat 9.0.17 + MySQL 5.7
      Portal master GIT ID: 2e0862286535b794943a0b519da71f7bff312691

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kyle.miho Kyle Miho
                Reporter:
                kyle.miho Kyle Miho
                Participants of an Issue:
                Recent user:
                Jason Pince
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  41 weeks, 2 days ago

                  Packages

                  Version Package
                  7.2.10 DXP FP2
                  7.2.10.1 DXP SP1
                  7.2.X
                  7.2.1 CE GA2
                  Master