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

The error message is missing when import a fragment containing the invalid element via Liferay Fragments Toolkit

    Details

      Description

      Step to reproduce:

      1. Run yo liferay-fragments in repo to create a new project
      2. Access to new project
      3. Run npm run add-fragment
      4. Open index.html file
      5. Insert the following tag to <div> tags
        	<img
        	alt="Responsive Image"
        	class="w-100 page-editor__editable"
        	data-lfr-editable-id="image-square"
        	data-lfr-editable-type="text"
        	src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAJCAYAAAA7KqwyAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAkSURBVHgB7cxBEQAACAIwtH8Pzw52kxD8OBZgNXsPQUOUwCIgAz0DHTyygaAAAAAASUVORK5CYII="
        	/>
        
      6. Back to new project directory
      7. Run npm run import

      Expected Results:
      The import should fail and the error message is shown specifying the line of the mistake and the valid tags for the editable type specified.

      Actual Results:
      The import succeeds.

      Reproduced on:
      Tomcat 9.0.33 + MySQL 5.7. Portal master GIT ID: 98b6a3e0f6ae263d0e5e3f17c76020bfbcdf5cdb.

        Attachments

          Activity

            People

            • Assignee:
              yang.cao Yang Cao
              Reporter:
              jurgen.kappler Jürgen Kappler
              Participants of an Issue:
              Recent user:
              Yang Cao
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                12 weeks, 6 days ago

                Packages

                Version Package
                Master