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

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: Master
    • Fix Version/s: Master
    • Component/s: Fragments Toolkit
    • Labels:
      None

      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

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  14 weeks ago

                  Packages

                  Version Package
                  Master