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

Code content editor validation differs to preview validation when entry is added into Antisamy whitelist

    Details

      Description

      Code content editor validation differs to preview validation when entry is added into Antisamy whitelist.


      Steps to reproduce in master/7.0.x

      1. Start a portal
      2. Log in
      3. Got to Menu > Control Panel > Configuration > System Settings > tab 'Foundation' > Antisamy Sanitizer
      4. Add to whitelist
        • com.liferay.blogs.kernel.model.BlogsEntry (for 7.0.x)
        • com.liferay.blogs.model.BlogsEntry (for master)
      5. Create new page
      6. Add Blog Application into the page
      7. Add new Blog Entry
      8. Add next fields
        • title=Blog Title
        • subtilte=Blog Subtitle
      9. Add content in source mode, I mean, clicking <> button, adding below content and click in Publish button without click in any other button before.
        • content=
          <video controls="" controlslist="nodownload" height="480"></video>
      10. Check in database table BlogsEntry, column content for this new Blog entry created this content:
        <video controls="" controlslist="nodownload" height="480"></video>

        Expected result
        Code

      <video controls="" controlslist="nodownload" height="480"></video>

        is not into the content (because must to be filtering like in preview validation).

      Current result
        Code

      <video controls="" controlslist="nodownload" height="480"></video>

        is still into the content.

        Attachments

          Activity

            People

            Assignee:
            brian.lee Brian Lee
            Reporter:
            josemaria.munoz José María Muñoz
            Participants of an Issue:
            Recent user:
            Joel Garman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 25 weeks ago

                Packages

                Version Package
                7.0.0 DXP FP89
                7.0.10.13 DXP SP13
                7.0.X
                7.1.10 DXP FP17
                7.1.10.4 SP4
                7.1.X
                7.2.10 DXP FP1
                7.2.X
                7.2.1 CE GA2
                7.3.0 CE GA1
                7.3.10 DXP GA1
                Master