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

dl.char.blacklist is not enforced for the filename when adding an external video shortcut

Details

    Description

      Steps to reproduce:

      1. Navigate to DM
      2. Add an external video shortcut
      3. In the video URL, reference any Youtube video with a title that includes any character found in `dl.char.blacklist`, e.g. https://www.youtube.com/watch?v=pbkPZJTusPY&ab_channel=CocinaPrimitiva (in this case the restricted character is "|")
      4. Assert the title field is filled out based on the Youtube video title
      5. Publish the video shortcut

      Expected result:
      An error message appears saying the video must be changed since it contains invalid characters

      Actual result:
      The video is added.

      Allowing the video to be added creates UX inconsistency because if the same video shortcut is then edited, the validation is then applied and the same title cannot be published until the restricted character is removed.

      Reproduced on:
      Tomcat 9.0.56 + MySQL 5.7.
      Portal master 41fa9fed94f20c40a4bcf5febb6dd3b5972d2d23

      Attachments

        1. fixed.PNG
          fixed.PNG
          16 kB
        2. SFG6FE9foO.mp4
          1.98 MB

        Issue Links

          Activity

            People

              austin.chiang Austin Chiang
              austin.chiang Austin Chiang
              Kiyoshi Lee Kiyoshi Lee
              Alicia Garcia Alicia Garcia
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11 weeks, 5 days ago

                Packages

                  Version Package
                  7.4.3.32 CE GA32
                  7.4.3.33 CE GA33
                  7.4.3.34 CE GA34
                  Master