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

Can save an invalid editable type in fragments admin

    Details

      Description

      Step to reproduce:

      1. Go to Fragments Admin view
      2. Create a new fragments collection
      3. Add a new fragment
      4. 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="
        	/>
        
      1. Publish the fragment

      Expected Results:
      Publish should fail since there is an invalid editable type specified for the tag.

      Actual Results:
      Publish is successfull.

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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yang.cao Yang Cao
              Reporter:
              yang.cao Yang Cao
              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:
                30 weeks, 2 days ago

                  Packages

                  Version Package
                  7.3.10 DXP GA1
                  Master